Im using this code to show App compilation date:
ApplicationInfo ai = a.getPackageManager().getApplicationInfo(a.getPackageName(), 0);
ZipFile zf = new ZipFile(ai.sourceDir);
ZipEntry ze = zf.getEntry("META-INF/MANIFEST.MF");
long time = ze.getTime() + (3600000 * 2);
Log.i("date", new SimpleDateFormat("HH:mm:ss dd.MM.yyyy").format(new Date(time)));
zf.close();
Yesterday everything was fine but today (after Android Studio upgrade ???) everytime It shows
02:00:00 30.11.1979
??? I have already Cleaned and Rebuilt project. What is wrong here?