You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2021/11/23 16:03:31 UTC

[isis] branch master updated: ISIS-2877: trying to fix time-zone format with 'Z' -> 'x' (2)

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

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new 6de16af  ISIS-2877: trying to fix time-zone format with 'Z' -> 'x' (2)
6de16af is described below

commit 6de16afc83ece1428e3a906bc8b4f1d288bc3c9f
Author: Andi Huber <ah...@apache.org>
AuthorDate: Tue Nov 23 17:00:10 2021 +0100

    ISIS-2877: trying to fix time-zone format with 'Z' -> 'x' (2)
    
    - using 'Z' works on my workstation, but fails on CI with
    
    java.lang.IllegalArgumentException: The datetime zone id 'Z' is not
    recognised
---
 .../ui/components/scalars/jodatime/JodaDateTimeConverterTest.java       | 2 +-
 .../scalars/jodatime/jdk8time/OffsetDateTimeConverterTest.java          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/viewers/wicket/ui/src/test/java/org/apache/isis/viewer/wicket/ui/components/scalars/jodatime/JodaDateTimeConverterTest.java b/viewers/wicket/ui/src/test/java/org/apache/isis/viewer/wicket/ui/components/scalars/jodatime/JodaDateTimeConverterTest.java
index b2486c1..4b9061b 100644
--- a/viewers/wicket/ui/src/test/java/org/apache/isis/viewer/wicket/ui/components/scalars/jodatime/JodaDateTimeConverterTest.java
+++ b/viewers/wicket/ui/src/test/java/org/apache/isis/viewer/wicket/ui/components/scalars/jodatime/JodaDateTimeConverterTest.java
@@ -53,7 +53,7 @@ class JodaDateTimeConverterTest {
 
     @Test
     void happy_case() {
-        converterTester.assertRoundtrip(valid, "2013-05-11 17:59:00 +0100");
+        converterTester.assertRoundtrip(valid, "2013-05-11 17:59:00 +01");
     }
 
     @Test
diff --git a/viewers/wicket/ui/src/test/java/org/apache/isis/viewer/wicket/ui/components/scalars/jodatime/jdk8time/OffsetDateTimeConverterTest.java b/viewers/wicket/ui/src/test/java/org/apache/isis/viewer/wicket/ui/components/scalars/jodatime/jdk8time/OffsetDateTimeConverterTest.java
index 3cf271b..cd75384 100644
--- a/viewers/wicket/ui/src/test/java/org/apache/isis/viewer/wicket/ui/components/scalars/jodatime/jdk8time/OffsetDateTimeConverterTest.java
+++ b/viewers/wicket/ui/src/test/java/org/apache/isis/viewer/wicket/ui/components/scalars/jodatime/jdk8time/OffsetDateTimeConverterTest.java
@@ -51,7 +51,7 @@ class OffsetDateTimeConverterTest {
 
     @Test
     void happy_case() {
-        converterTester.assertRoundtrip(valid, "2013-05-11 17:23:00 +0300");
+        converterTester.assertRoundtrip(valid, "2013-05-11 17:23:00 +03");
     }
 
     @Test