From e8f743993fc84fc78c66dbf0187a4da0705caf8e Mon Sep 17 00:00:00 2001 From: Florian Heck Date: Thu, 18 Apr 2024 15:31:44 +0200 Subject: [PATCH] HHH-17975: use the same precision (millis) for resolving revision timestamps from Instant as from LocalDateTime --- .../internal/revisioninfo/RevisionTimestampValueResolver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-envers/src/main/java/org/hibernate/envers/internal/revisioninfo/RevisionTimestampValueResolver.java b/hibernate-envers/src/main/java/org/hibernate/envers/internal/revisioninfo/RevisionTimestampValueResolver.java index c86bc31bc0..506457a7a7 100644 --- a/hibernate-envers/src/main/java/org/hibernate/envers/internal/revisioninfo/RevisionTimestampValueResolver.java +++ b/hibernate-envers/src/main/java/org/hibernate/envers/internal/revisioninfo/RevisionTimestampValueResolver.java @@ -100,7 +100,7 @@ public class RevisionTimestampValueResolver { return instant; } else { - return instant.getEpochSecond(); + return instant.toEpochMilli(); } } return null;