summaryrefslogtreecommitdiffstats
path: root/media/java
diff options
context:
space:
mode:
authorRay Chen <raychen@google.com>2009-12-03 10:35:36 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2009-12-03 10:35:36 -0800
commit3bd0a4843a0738dc68cabf7fb35bab332179d770 (patch)
treeca4f058fabcab853aec7c6db7e99b39b790a5aac /media/java
parente8b9c4b83ebf6af05cf98588bf7cb1f08368bcd4 (diff)
parente12de4d5041e05f77cc4376a6bfc953a48e2c3c1 (diff)
downloadframeworks_base-3bd0a4843a0738dc68cabf7fb35bab332179d770.zip
frameworks_base-3bd0a4843a0738dc68cabf7fb35bab332179d770.tar.gz
frameworks_base-3bd0a4843a0738dc68cabf7fb35bab332179d770.tar.bz2
am e12de4d5: Merge change Id5fa58cf into eclair
Merge commit 'e12de4d5041e05f77cc4376a6bfc953a48e2c3c1' into eclair-plus-aosp * commit 'e12de4d5041e05f77cc4376a6bfc953a48e2c3c1': Fix timezone issue to comply with EXIF standard.
Diffstat (limited to 'media/java')
-rw-r--r--media/java/android/media/ExifInterface.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/media/java/android/media/ExifInterface.java b/media/java/android/media/ExifInterface.java
index 6cd4b92..c49ad5c 100644
--- a/media/java/android/media/ExifInterface.java
+++ b/media/java/android/media/ExifInterface.java
@@ -22,6 +22,7 @@ import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
+import java.util.TimeZone;
/**
* This is a class for reading and writing Exif tags in a JPEG file.
@@ -56,9 +57,12 @@ public class ExifInterface {
// Constants used for white balance
public static final int WHITEBALANCE_AUTO = 0;
public static final int WHITEBALANCE_MANUAL = 1;
+ private static SimpleDateFormat sFormatter;
static {
System.loadLibrary("exif");
+ sFormatter = new SimpleDateFormat("yyyy:MM:dd HH:mm:ss");
+ sFormatter.setTimeZone(TimeZone.getTimeZone("UTC"));
}
private String mFilename;
@@ -242,9 +246,6 @@ public class ExifInterface {
}
}
- private static SimpleDateFormat sFormatter =
- new SimpleDateFormat("yyyy:MM:dd HH:mm:ss");
-
/**
* Returns number of milliseconds since Jan. 1, 1970, midnight GMT.
* Returns -1 if the date time information if not available.