This is an automated email from the ASF dual-hosted git repository.
jhyde pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git
The following commit(s) were added to refs/heads/main by this push:
new ecb27b9f92 [CALCITE-5493] Time zone tests in SqlFunctions should pass
in Europe/London
ecb27b9f92 is described below
commit ecb27b9f921bc6258da7a904bc2ecef1eaeaf501
Author: Greg Hart <[email protected]>
AuthorDate: Tue Jan 24 14:13:52 2023 -0800
[CALCITE-5493] Time zone tests in SqlFunctions should pass in Europe/London
---
core/src/test/java/org/apache/calcite/test/SqlFunctionsTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/src/test/java/org/apache/calcite/test/SqlFunctionsTest.java
b/core/src/test/java/org/apache/calcite/test/SqlFunctionsTest.java
index 9d2c1b89ec..35d0375b4e 100644
--- a/core/src/test/java/org/apache/calcite/test/SqlFunctionsTest.java
+++ b/core/src/test/java/org/apache/calcite/test/SqlFunctionsTest.java
@@ -1023,11 +1023,11 @@ class SqlFunctionsTest {
final java.sql.Date epoch = java.sql.Date.valueOf("1970-01-01");
final TimeZone minusDayZone = TimeZone.getDefault();
- minusDayZone.setRawOffset((int) (minusDayZone.getOffset(0L) -
MILLIS_PER_DAY));
+ minusDayZone.setRawOffset((int) (minusDayZone.getRawOffset() -
MILLIS_PER_DAY));
assertThat(toInt(epoch, minusDayZone), is(-1));
final TimeZone plusDayZone = TimeZone.getDefault();
- plusDayZone.setRawOffset((int) (plusDayZone.getOffset(0L) +
MILLIS_PER_DAY));
+ plusDayZone.setRawOffset((int) (plusDayZone.getRawOffset() +
MILLIS_PER_DAY));
assertThat(toInt(epoch, plusDayZone), is(1));
}