Skip to content

Commit 163e5ea

Browse files
author
Gerald Unterrainer
committed
amend
1 parent ee5f7a3 commit 163e5ea

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Diff for: pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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

Diff for: src/main/java/info/unterrainer/commons/rdbutils/converters/LocalDateTimeConverter.java

+1-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import java.sql.Timestamp;
44
import java.time.LocalDateTime;
5-
import java.time.ZoneId;
65
import java.time.temporal.ChronoUnit;
76

87
import 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
}

0 commit comments

Comments
 (0)