We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40e10b1 commit 9fe024cCopy full SHA for 9fe024c
src/main/java/info/unterrainer/commons/rdbutils/converters/LocalDateTimeConverter.java
@@ -8,7 +8,6 @@
8
9
import jakarta.persistence.AttributeConverter;
10
import jakarta.persistence.Converter;
11
-import liquibase.pro.packaged.db;
12
import info.unterrainer.commons.jreutils.DateUtils;
13
14
@Converter()
@@ -29,7 +28,6 @@ public LocalDateTime convertToEntityAttribute(final Timestamp dbValue) {
29
28
if (dbValue == null)
30
return null;
31
LocalDateTime ldt = DateUtils.epochToUtcLocalDateTime(dbValue.getTime());
32
- ldt = ldt.withNano(dbValue.getNanos());
33
- return ldt;
+ return ldt.withNano(dbValue.getNanos());
34
}
35
0 commit comments