File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/main/java/info/unterrainer/commons/rdbutils/converters Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 88
99import jakarta .persistence .AttributeConverter ;
1010import jakarta .persistence .Converter ;
11-
11+ import liquibase . pro . packaged . db ;
1212import info .unterrainer .commons .jreutils .DateUtils ;
1313
1414@ Converter ()
@@ -23,8 +23,13 @@ public Timestamp convertToDatabaseColumn(final LocalDateTime entityValue) {
2323 return timestamp ;
2424 }
2525
26+ // FIXXXING
2627 @ Override
2728 public LocalDateTime convertToEntityAttribute (final Timestamp dbValue ) {
28- return dbValue == null ? null : DateUtils .epochToUtcLocalDateTime (dbValue .getTime ());
29+ if (dbValue == null )
30+ return null ;
31+ LocalDateTime ldt = DateUtils .epochToUtcLocalDateTime (dbValue .getTime ());
32+ ldt = ldt .withNano (dbValue .getNanos ());
33+ return ldt ;
2934 }
3035}
You can’t perform that action at this time.
0 commit comments