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 2020/04/09 05:26:51 UTC
[isis] branch master updated: ISIS-2343: fixes
java.time.temporal.UnsupportedTemporalTypeException: Unsupported field:
OffsetSeconds
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 14957cf ISIS-2343: fixes java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: OffsetSeconds
14957cf is described below
commit 14957cf9a41d5bb38d78b344c2b059885152d4f8
Author: Andi Huber <ah...@apache.org>
AuthorDate: Thu Apr 9 07:26:38 2020 +0200
ISIS-2343: fixes java.time.temporal.UnsupportedTemporalTypeException:
Unsupported field: OffsetSeconds
---
.../java/org/apache/isis/core/runtimeservices/i18n/po/PoWriter.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/runtimeservices/src/main/java/org/apache/isis/core/runtimeservices/i18n/po/PoWriter.java b/core/runtimeservices/src/main/java/org/apache/isis/core/runtimeservices/i18n/po/PoWriter.java
index c2bd18a..b7f4894 100644
--- a/core/runtimeservices/src/main/java/org/apache/isis/core/runtimeservices/i18n/po/PoWriter.java
+++ b/core/runtimeservices/src/main/java/org/apache/isis/core/runtimeservices/i18n/po/PoWriter.java
@@ -18,7 +18,7 @@
*/
package org.apache.isis.core.runtimeservices.i18n.po;
-import java.time.LocalDateTime;
+import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Locale;
import java.util.SortedMap;
@@ -89,7 +89,7 @@ class PoWriter extends PoAbstract {
*/
protected void header(final StringBuilder buf) {
- final String createdAt = LocalDateTime.now().format(timestampFormat);
+ final String createdAt = ZonedDateTime.now().format(timestampFormat);
buf.append("#, fuzzy").append("\n");
buf.append("msgid \"\"").append("\n");
buf.append("msgstr \"\"").append("\n");