Merge "Set default locale to US"

This commit is contained in:
Jin Seok Park
2020-07-23 10:22:54 +00:00
committed by Android (Google) Code Review

View File

@@ -1411,9 +1411,9 @@ public class ExifInterface {
private static final int IMAGE_TYPE_WEBP = 14;
static {
sFormatter = new SimpleDateFormat("yyyy:MM:dd HH:mm:ss");
sFormatter = new SimpleDateFormat("yyyy:MM:dd HH:mm:ss", Locale.US);
sFormatter.setTimeZone(TimeZone.getTimeZone("UTC"));
sFormatterTz = new SimpleDateFormat("yyyy:MM:dd HH:mm:ss XXX");
sFormatterTz = new SimpleDateFormat("yyyy:MM:dd HH:mm:ss XXX", Locale.US);
sFormatterTz.setTimeZone(TimeZone.getTimeZone("UTC"));
// Build up the hash tables to look up Exif tags for reading Exif tags.