From f4bfd9c71f51fb541d0fd203f0df2e609632dc62 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 9 Oct 2017 14:41:46 -0600 Subject: [PATCH] Refactor "GMT" magic string. --- src/main/java/org/apache/commons/lang3/time/FastDateParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java index 23abc5af8..27eca47d3 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java +++ b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java @@ -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 tzNames= new HashMap<>();