Fixing screenshot timestamp (5147168)

Change-Id: I28ce2431bdfe7025191d9a6780ba0a59175c8047
This commit is contained in:
Winson Chung
2011-08-10 16:02:39 -07:00
parent a00b97c94e
commit 930facd20e

View File

@@ -91,7 +91,7 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi
try {
long currentTime = System.currentTimeMillis();
String date = new SimpleDateFormat("yyyy-MM-dd-kk-mm-ss").format(new Date(currentTime));
String date = new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss").format(new Date(currentTime));
String imageDir = Environment.getExternalStoragePublicDirectory(
Environment.DIRECTORY_PICTURES).getAbsolutePath();
String imageFileName = String.format(SCREENSHOT_FILE_NAME_TEMPLATE, date);