From e2d75f4c2ed84cb167e85dc6b5573b32b30e43c5 Mon Sep 17 00:00:00 2001 From: Roland Praml Date: Tue, 25 Oct 2022 10:08:03 +0200 Subject: [PATCH] FIX: Add fallback for Ebean 11 Jsons --- .../server/type/ScalarTypeLocalDateTime.java | 9 ++++- .../type/ScalarTypeLocalDateTimeTest.java | 38 ++++++++++++++++++- 2 files changed, 44 insertions(+), 3 deletions(-) diff --git a/ebean-core/src/main/java/io/ebeaninternal/server/type/ScalarTypeLocalDateTime.java b/ebean-core/src/main/java/io/ebeaninternal/server/type/ScalarTypeLocalDateTime.java index 3de0184e1..eb84613ea 100644 --- a/ebean-core/src/main/java/io/ebeaninternal/server/type/ScalarTypeLocalDateTime.java +++ b/ebean-core/src/main/java/io/ebeaninternal/server/type/ScalarTypeLocalDateTime.java @@ -11,6 +11,7 @@ import java.sql.Timestamp; import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneId; +import java.time.format.DateTimeParseException; /** * ScalarType for java.sql.Timestamp. @@ -48,7 +49,7 @@ final class ScalarTypeLocalDateTime extends ScalarTypeBaseDateTime