UTC and GMT are the same, so simplify.
This commit is contained in:
parent
3b6867fc25
commit
ed94e5a5cc
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue