Repository: tajo Updated Branches: refs/heads/master f6e09a5ae -> 0c97fc031
TAJO-1188: Fix testcase testTimestampConstructor in TestTimestampDatum. (DaeMyung Kang via hyunsik) Project: http://git-wip-us.apache.org/repos/asf/tajo/repo Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/0c97fc03 Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/0c97fc03 Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/0c97fc03 Branch: refs/heads/master Commit: 0c97fc0319b0f33c3a76f591d48cb52f1df92567 Parents: f6e09a5 Author: Hyunsik Choi <[email protected]> Authored: Tue Nov 25 17:42:22 2014 +0900 Committer: Hyunsik Choi <[email protected]> Committed: Tue Nov 25 17:42:22 2014 +0900 ---------------------------------------------------------------------- CHANGES | 3 +++ .../src/test/java/org/apache/tajo/datum/TestTimestampDatum.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tajo/blob/0c97fc03/CHANGES ---------------------------------------------------------------------- diff --git a/CHANGES b/CHANGES index 06a0f47..6521c1c 100644 --- a/CHANGES +++ b/CHANGES @@ -62,6 +62,9 @@ Release 0.9.1 - unreleased TAJO-1163: TableDesc should use URI instead of Path. (hyunsik) + TAJO-1188: Fix testcase testTimestampConstructor in TestTimestampDatum. + (DaeMyung Kang via hyunsik) + BUG FIXES http://git-wip-us.apache.org/repos/asf/tajo/blob/0c97fc03/tajo-common/src/test/java/org/apache/tajo/datum/TestTimestampDatum.java ---------------------------------------------------------------------- diff --git a/tajo-common/src/test/java/org/apache/tajo/datum/TestTimestampDatum.java b/tajo-common/src/test/java/org/apache/tajo/datum/TestTimestampDatum.java index 5f27cfa..5886083 100644 --- a/tajo-common/src/test/java/org/apache/tajo/datum/TestTimestampDatum.java +++ b/tajo-common/src/test/java/org/apache/tajo/datum/TestTimestampDatum.java @@ -151,7 +151,8 @@ public class TestTimestampDatum { assertEquals(datum2, datum); for (int i = 0; i < 100; i++) { - Calendar cal = Calendar.getInstance(); + TimeZone timeZone = TimeZone.getTimeZone("UTC"); + Calendar cal = Calendar.getInstance(timeZone); long jTime = System.currentTimeMillis(); int uTime = (int)(jTime / 1000); cal.setTimeInMillis(jTime);
