kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From granthe...@apache.org
Subject [2/2] kudu git commit: [tests] Fix usage of deprecated time zones
Date Wed, 27 Jun 2018 14:19:12 GMT
[tests] Fix usage of deprecated time zones

Replaces some deprecated 3 letter time zones with thier
equivalents.

Change-Id: Ie5f87f337d04231eb4ed092adbd3963598bc86ad
Reviewed-on: http://gerrit.cloudera.org:8080/10828
Tested-by: Kudu Jenkins
Reviewed-by: Dan Burkert <danburkert@apache.org>


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

Branch: refs/heads/master
Commit: e0a4c6cfa122f6263c068d59ba8566c1a786967a
Parents: 81828ba
Author: Grant Henke <granthenke@apache.org>
Authored: Tue Jun 26 15:13:59 2018 -0500
Committer: Grant Henke <granthenke@apache.org>
Committed: Wed Jun 27 13:03:28 2018 +0000

----------------------------------------------------------------------
 .../src/test/java/org/apache/kudu/util/TestTimestampUtil.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/e0a4c6cf/java/kudu-client/src/test/java/org/apache/kudu/util/TestTimestampUtil.java
----------------------------------------------------------------------
diff --git a/java/kudu-client/src/test/java/org/apache/kudu/util/TestTimestampUtil.java b/java/kudu-client/src/test/java/org/apache/kudu/util/TestTimestampUtil.java
index c06ae06..46d6e69 100644
--- a/java/kudu-client/src/test/java/org/apache/kudu/util/TestTimestampUtil.java
+++ b/java/kudu-client/src/test/java/org/apache/kudu/util/TestTimestampUtil.java
@@ -49,7 +49,7 @@ public class TestTimestampUtil {
   @Test
   public void testNonZuluTimestampConversion() throws Exception {
     SimpleDateFormat cst = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
-    cst.setTimeZone(TimeZone.getTimeZone("CST"));
+    cst.setTimeZone(TimeZone.getTimeZone("America/Chicago"));
 
     String timeString = "2016-08-19T12:12:12.121";
     Timestamp timestamp = new Timestamp(cst.parse(timeString).getTime());
@@ -63,7 +63,7 @@ public class TestTimestampUtil {
     assertEquals(timeString, formattedCST);
 
     SimpleDateFormat pst = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
-    pst.setTimeZone(TimeZone.getTimeZone("PST"));
+    pst.setTimeZone(TimeZone.getTimeZone("America/Los_Angeles"));
     String formattedPST = pst.format(fromMicros);
     assertEquals("2016-08-19T10:12:12.121", formattedPST);
 


Mime
View raw message