This is an automated email from the ASF dual-hosted git repository. acoburn pushed a commit to branch timezone_test in repository https://gitbox.apache.org/repos/asf/jena.git
commit fc6af488821d0e7ec07753e5e846ea381e2ad62e Author: Aaron Coburn <[email protected]> AuthorDate: Tue Apr 23 14:35:05 2019 -0400 JENA-1659: Improve tests for western hemisphere timezones This adjusts the timezone function to pass when run in a timezone to the west of GMT. --- jena-arq/src/test/java/org/apache/jena/sparql/expr/TestFunctions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jena-arq/src/test/java/org/apache/jena/sparql/expr/TestFunctions.java b/jena-arq/src/test/java/org/apache/jena/sparql/expr/TestFunctions.java index d20f070..f040f4c 100644 --- a/jena-arq/src/test/java/org/apache/jena/sparql/expr/TestFunctions.java +++ b/jena-arq/src/test/java/org/apache/jena/sparql/expr/TestFunctions.java @@ -456,7 +456,7 @@ public class TestFunctions @Test public void localDateTime_1() { test("afn:nowtz()", nv-> nv.isDateTime()); } // Test field defined. - @Test public void localDateTime_2() { test("afn:nowtz()", nv-> nv.getDateTime().getTimezone() > -1 ); } + @Test public void localDateTime_2() { test("afn:nowtz()", nv-> nv.getDateTime().getTimezone() > -14 * 60 ); } @Test public void localDateTime_3() { test("afn:nowtz() = NOW()", NodeValue.TRUE); }
