File tree 2 files changed +2
-7
lines changed
src/main/java/info/unterrainer/commons/rdbutils/converters
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 8
8
9
9
<modelVersion >4.0.0</modelVersion >
10
10
<artifactId >rdb-utils</artifactId >
11
- <version >0.2.2 </version >
11
+ <version >0.2.3 </version >
12
12
<name >RdbUtils</name >
13
13
<packaging >jar</packaging >
14
14
Original file line number Diff line number Diff line change 2
2
3
3
import java .sql .Timestamp ;
4
4
import java .time .LocalDateTime ;
5
- import java .time .ZoneId ;
6
5
import java .time .temporal .ChronoUnit ;
7
6
8
7
import jakarta .persistence .AttributeConverter ;
@@ -24,10 +23,6 @@ public Timestamp convertToDatabaseColumn(final LocalDateTime entityValue) {
24
23
public LocalDateTime convertToEntityAttribute (final Timestamp dbValue ) {
25
24
if (dbValue == null )
26
25
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 ();
32
27
}
33
28
}
You can’t perform that action at this time.
0 commit comments