commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject [lang] UTC and GMT are the same, so simplify.
Date Mon, 09 Oct 2017 20:47:36 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master 3b6867fc2 -> ed94e5a5c


UTC and GMT are the same, so simplify.

Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/ed94e5a5
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/ed94e5a5
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/ed94e5a5

Branch: refs/heads/master
Commit: ed94e5a5cce33af89dc1b1475204734b17f64bb0
Parents: 3b6867f
Author: Gary Gregory <ggregory@apache.org>
Authored: Mon Oct 9 14:47:33 2017 -0600
Committer: Gary Gregory <ggregory@apache.org>
Committed: Mon Oct 9 14:47:33 2017 -0600

----------------------------------------------------------------------
 src/main/java/org/apache/commons/lang3/time/FastDateParser.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ed94e5a5/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
----------------------------------------------------------------------
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 94a5d97..f670d7e 100644
--- a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
+++ b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
@@ -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));
             }


Mime
View raw message