Refactor "GMT" magic string.

This commit is contained in:
Gary Gregory 2017-10-09 14:41:46 -06:00
parent fd60085a2a
commit f4bfd9c71f
1 changed files with 1 additions and 1 deletions

View File

@ -808,7 +808,7 @@ public class FastDateParser implements DateParser, Serializable {
*/
static class TimeZoneStrategy extends PatternStrategy {
private static final String RFC_822_TIME_ZONE = "[+-]\\d{4}";
private static final String GMT_OPTION= "GMT[+-]\\d{1,2}:\\d{2}";
private static final String GMT_OPTION = TimeZones.GMT_ID + "[+-]\\d{1,2}:\\d{2}";
private final Locale locale;
private final Map<String, TzInfo> tzNames= new HashMap<>();