From ac49021e28e3608ce202db1454afc2a66918fcd1 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 c86bc31bc086..506457a7a7a8 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 @@ else if ( timestampData.isInstant() ) { return instant; } else { - return instant.getEpochSecond(); + return instant.toEpochMilli(); } } return null;