Merge "hadoop-swiftfs: SimpleDateFormat is locale specific"

This commit is contained in:
Jenkins 2016-06-23 21:01:37 +00:00 committed by Gerrit Code Review
commit 83ba31bf8c
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ public class SwiftNativeFileSystemStore {
length = Long.parseLong(header.getValue());
}
if (SwiftProtocolConstants.HEADER_LAST_MODIFIED.equals(headerName)) {
final SimpleDateFormat simpleDateFormat = new SimpleDateFormat(PATTERN);
final SimpleDateFormat simpleDateFormat = new SimpleDateFormat(PATTERN, Locale.US);
try {
lastModified = simpleDateFormat.parse(header.getValue()).getTime();
} catch (ParseException e) {