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 15:52:13 UTC

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

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 644a3ff  ISIS-2877: trying to fix time-zone format with 'Z' -> 'x'
644a3ff is described below

commit 644a3ff90a2b2ccfbe55e7a6dcb79058cfc6d370
Author: Andi Huber <ah...@apache.org>
AuthorDate: Tue Nov 23 16:52:05 2021 +0100

    ISIS-2877: trying to fix time-zone format with 'Z' -> 'x'
    
    - using 'Z' works on my workstation, but fails on CI with
    
    java.lang.IllegalArgumentException: The datetime zone id 'Z' is not
    recognised
---
 .../valuesemantics/temporal/TemporalValueSemanticsProvider.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/metamodel/src/main/java/org/apache/isis/core/metamodel/valuesemantics/temporal/TemporalValueSemanticsProvider.java b/core/metamodel/src/main/java/org/apache/isis/core/metamodel/valuesemantics/temporal/TemporalValueSemanticsProvider.java
index e7d2a83..47ef101 100644
--- a/core/metamodel/src/main/java/org/apache/isis/core/metamodel/valuesemantics/temporal/TemporalValueSemanticsProvider.java
+++ b/core/metamodel/src/main/java/org/apache/isis/core/metamodel/valuesemantics/temporal/TemporalValueSemanticsProvider.java
@@ -186,13 +186,13 @@ implements TemporalValueSemantics<T> {
      */
     protected DateTimeFormatter getEditingFormat(final ValueSemanticsProvider.Context context) {
         return getEditingFormat(context, temporalCharacteristic, offsetCharacteristic,
-                "yyyy-MM-dd", "HH:mm:ss", "Z");
+                "yyyy-MM-dd", "HH:mm:ss", "x");
     }
 
     @Override
     public String getPattern(final ValueSemanticsProvider.Context context) {
         return getEditingFormatAsPattern(temporalCharacteristic, offsetCharacteristic,
-                "yyyy-MM-dd", "HH:mm:ss", "Z");
+                "yyyy-MM-dd", "HH:mm:ss", "x");
     }
 
     /**