From cd203aaf44af84c6658e500f13020c53f16a50a6 Mon Sep 17 00:00:00 2001 From: Rafael Praxedes Date: Fri, 26 Jan 2024 15:14:09 -0300 Subject: [PATCH] LPD-15625 Use milliseconds precision --- .../object/service/test/ObjectEntryLocalServiceTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/apps/object/object-test/src/testIntegration/java/com/liferay/object/service/test/ObjectEntryLocalServiceTest.java b/modules/apps/object/object-test/src/testIntegration/java/com/liferay/object/service/test/ObjectEntryLocalServiceTest.java index f8279cfbdddc8e..ad8e69be61fc2e 100644 --- a/modules/apps/object/object-test/src/testIntegration/java/com/liferay/object/service/test/ObjectEntryLocalServiceTest.java +++ b/modules/apps/object/object-test/src/testIntegration/java/com/liferay/object/service/test/ObjectEntryLocalServiceTest.java @@ -2766,7 +2766,11 @@ public void testUpdateObjectEntry() throws Exception { Date birthdayDate = calendar.getTime(); String script = RandomTestUtil.randomString(1500); - Timestamp timestamp = Timestamp.valueOf(LocalDateTime.now()); + Timestamp timestamp = Timestamp.valueOf( + LocalDateTime.now( + ).withNano( + 0 + )); _objectEntryLocalService.updateObjectEntry( TestPropsValues.getUserId(), objectEntry.getObjectEntryId(),