From 6e163b9f5cec4cba4c71470cc92eedb5a1f29611 Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Wed, 17 Apr 2024 22:57:55 +1200 Subject: [PATCH] #3393 Fix for 12.x to support "NoTimeZone" to bypass MySQL JDBC use of Timezone Calendar --- .../io/ebeaninternal/server/core/InternalConfiguration.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ebean-core/src/main/java/io/ebeaninternal/server/core/InternalConfiguration.java b/ebean-core/src/main/java/io/ebeaninternal/server/core/InternalConfiguration.java index e6944a9e96..f5a0b1a12b 100644 --- a/ebean-core/src/main/java/io/ebeaninternal/server/core/InternalConfiguration.java +++ b/ebean-core/src/main/java/io/ebeaninternal/server/core/InternalConfiguration.java @@ -445,6 +445,9 @@ private TransactionScopeManager createTransactionScopeManager() { */ private DataTimeZone initDataTimeZone() { String tz = config.getDataTimeZone(); + if ("NoTimeZone".equals(tz)) { + return new NoDataTimeZone(); + } if (tz == null) { if (isMySql(getPlatform())) { return new MySqlDataTimeZone();