From 523ddbab63f797e0131a95fa3b344be1dc5b6943 Mon Sep 17 00:00:00 2001 From: Robin Bygrave Date: Thu, 21 Apr 2016 20:11:39 +1200 Subject: [PATCH] #658 - REFACTOR: Simplify LocalDateTime -> Timestamp conversion, use Timestamp.valueOf() --- .../server/type/ScalarTypeLocalDateTime.java | 17 +++++++---------- .../type/ScalarTypeLocalDateTimeTest.java | 13 +++++++++++-- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/avaje/ebeaninternal/server/type/ScalarTypeLocalDateTime.java b/src/main/java/com/avaje/ebeaninternal/server/type/ScalarTypeLocalDateTime.java index 92cf21014..65bf28303 100644 --- a/src/main/java/com/avaje/ebeaninternal/server/type/ScalarTypeLocalDateTime.java +++ b/src/main/java/com/avaje/ebeaninternal/server/type/ScalarTypeLocalDateTime.java @@ -6,7 +6,6 @@ import java.sql.Timestamp; import java.sql.Types; import java.time.LocalDateTime; import java.time.ZoneId; -import java.time.ZonedDateTime; /** * ScalarType for java.sql.Timestamp. @@ -24,7 +23,7 @@ public class ScalarTypeLocalDateTime extends ScalarTypeBaseDateTime