This commit is contained in:
ggregory 2016-02-24 22:14:50 -08:00
parent f3a7cf629c
commit a72a5ced53
1 changed files with 29 additions and 31 deletions

View File

@ -875,11 +875,9 @@ public class FastDateParser implements DateParser, Serializable {
TimeZone tz;
if (value.charAt(0) == '+' || value.charAt(0) == '-') {
tz = TimeZone.getTimeZone("GMT" + value);
}
else if(value.regionMatches(true, 0, "GMT", 0, 3)) {
} else if (value.regionMatches(true, 0, "GMT", 0, 3)) {
tz = TimeZone.getTimeZone(value.toUpperCase());
}
else {
} else {
tz = tzNames.get(value.toLowerCase(locale));
}
cal.setTimeZone(tz);