You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by ac...@apache.org on 2019/04/23 18:37:11 UTC

[jena] branch timezone_test created (now fc6af48)

This is an automated email from the ASF dual-hosted git repository.

acoburn pushed a change to branch timezone_test
in repository https://gitbox.apache.org/repos/asf/jena.git.


      at fc6af48  JENA-1659: Improve tests for western hemisphere timezones

This branch includes the following new commits:

     new fc6af48  JENA-1659: Improve tests for western hemisphere timezones

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[jena] 01/01: JENA-1659: Improve tests for western hemisphere timezones

Posted by ac...@apache.org.
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 <ac...@apache.org>
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); }