From 161aec1ada42f85ca78900bf6a87581d9d0abf06 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 23 May 2020 17:00:43 +0200 Subject: [PATCH] [#444] GraalVM 20.1.0 fixes timezone issue --- test/babashka/java_time_test.clj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/babashka/java_time_test.clj b/test/babashka/java_time_test.clj index c66fb8e4..90d8f704 100644 --- a/test/babashka/java_time_test.clj +++ b/test/babashka/java_time_test.clj @@ -20,4 +20,7 @@ (is (number? (bb " (let [x (java.time.LocalDateTime/parse \"2019-12-18T16:01:41.485\") y (java.time.LocalDateTime/now)] - (.between java.time.temporal.ChronoUnit/MINUTES x y))")))) + (.between java.time.temporal.ChronoUnit/MINUTES x y))"))) + (when test-utils/native? + (is (= "GMT+03:00" + (bb "(System/setProperty \"user.timezone\" \"GMT+3\") (.getId (java.time.ZoneId/systemDefault))")))))