From a605d872e5b4d929d1f4864eba3aa8aebcee35a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Chicchiricc=C3=B2?= Date: Thu, 10 Mar 2022 10:49:13 +0100 Subject: [PATCH] [OPENJPA-2713] Fixing OffsetDateTime conversion --- .../src/main/java/org/apache/openjpa/kernel/Filters.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java index 1afa7f2af..5cc92f006 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java @@ -375,7 +375,7 @@ public class Filters { } else if (o instanceof java.util.Date) { return ((java.util.Date)o).toInstant().atZone(ZoneId.systemDefault()).toOffsetDateTime(); } else if (o instanceof CharSequence) { - return LocalTime.parse((CharSequence) o); + return OffsetDateTime.parse((CharSequence) o); } }