Images.Media.DATE_TAKEN should be in milliseconds.

http://b/2297371
This commit is contained in:
Ray Chen
2009-12-04 01:47:07 -08:00
parent 48a65d99cb
commit 052d9c8b41
2 changed files with 3 additions and 2 deletions

View File

@ -62,7 +62,8 @@ public class ExifInterface {
static {
System.loadLibrary("exif");
sFormatter = new SimpleDateFormat("yyyy:MM:dd HH:mm:ss");
sFormatter.setTimeZone(TimeZone.getTimeZone("UTC"));
//TODO: uncomment this when our EXIF datetime is encoded as UTC
//sFormatter.setTimeZone(TimeZone.getTimeZone("UTC"));
}
private String mFilename;

View File

@ -746,7 +746,7 @@ public class MediaScanner
long time = exif.getDateTime();
if (time != -1) {
values.put(Images.Media.DATE_TAKEN, time * 1000);
values.put(Images.Media.DATE_TAKEN, time);
}
int orientation = exif.getAttributeInt(