Skip to content

Commit ac49021

Browse files
fheckbeikov
authored andcommitted
HHH-17975: use the same precision (millis) for resolving revision timestamps from Instant as from LocalDateTime
1 parent 034b42f commit ac49021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-envers/src/main/java/org/hibernate/envers/internal/revisioninfo/RevisionTimestampValueResolver.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ else if ( timestampData.isInstant() ) {
100100
return instant;
101101
}
102102
else {
103-
return instant.getEpochSecond();
103+
return instant.toEpochMilli();
104104
}
105105
}
106106
return null;

0 commit comments

Comments
 (0)