UTC and GMT are the same, so simplify.

This commit is contained in:
Gary Gregory 2017-10-09 14:47:33 -06:00
parent 3b6867fc25
commit ed94e5a5cc
1 changed files with 1 additions and 1 deletions

View File

@ -919,7 +919,7 @@ public class FastDateParser implements DateParser, Serializable {
@Override
void setCalendar(final FastDateParser parser, final Calendar cal, final String value) {
if (value.equals("Z")) {
cal.setTimeZone(TimeZone.getTimeZone("UTC"));
cal.setTimeZone(TimeZone.getTimeZone(TimeZones.GMT_ID));
} else {
cal.setTimeZone(TimeZone.getTimeZone(TimeZones.GMT_ID + value));
}