Merge commit '1b794bbbdc961558a9f0ee956d9d3f684d1f0497' into eclair-mr2-plus-aosp * commit '1b794bbbdc961558a9f0ee956d9d3f684d1f0497': Fix timezone issue to comply with EXIF standard.
This commit is contained in:
@@ -22,6 +22,7 @@ import java.text.SimpleDateFormat;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.TimeZone;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a class for reading and writing Exif tags in a JPEG file.
|
* 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
|
// Constants used for white balance
|
||||||
public static final int WHITEBALANCE_AUTO = 0;
|
public static final int WHITEBALANCE_AUTO = 0;
|
||||||
public static final int WHITEBALANCE_MANUAL = 1;
|
public static final int WHITEBALANCE_MANUAL = 1;
|
||||||
|
private static SimpleDateFormat sFormatter;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
System.loadLibrary("exif");
|
System.loadLibrary("exif");
|
||||||
|
sFormatter = new SimpleDateFormat("yyyy:MM:dd HH:mm:ss");
|
||||||
|
sFormatter.setTimeZone(TimeZone.getTimeZone("UTC"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private String mFilename;
|
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 number of milliseconds since Jan. 1, 1970, midnight GMT.
|
||||||
* Returns -1 if the date time information if not available.
|
* Returns -1 if the date time information if not available.
|
||||||
|
|||||||
Reference in New Issue
Block a user