File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
src/main/java/info/unterrainer/commons/rdbutils/converters Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 88
99 <modelVersion >4.0.0</modelVersion >
1010 <artifactId >rdb-utils</artifactId >
11- <version >0.2.2 </version >
11+ <version >0.2.3 </version >
1212 <name >RdbUtils</name >
1313 <packaging >jar</packaging >
1414
Original file line number Diff line number Diff line change 22
33import java .sql .Timestamp ;
44import java .time .LocalDateTime ;
5- import java .time .ZoneId ;
65import java .time .temporal .ChronoUnit ;
76
87import jakarta .persistence .AttributeConverter ;
@@ -24,10 +23,6 @@ public Timestamp convertToDatabaseColumn(final LocalDateTime entityValue) {
2423 public LocalDateTime convertToEntityAttribute (final Timestamp dbValue ) {
2524 if (dbValue == null )
2625 return null ;
27- LocalDateTime r = dbValue .toInstant ()
28- .atZone (ZoneId .systemDefault ())
29- .withZoneSameInstant (ZoneId .of ("UTC" ))
30- .toLocalDateTime ();
31- return r ;
26+ return dbValue .toLocalDateTime ();
3227 }
3328}
You can’t perform that action at this time.
0 commit comments