From e99e9ad12c5d2d1b63b2f65027068fcb26c91bf0 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Wed, 26 May 2021 14:59:53 +0200 Subject: [PATCH] [Fix] truncate production start to day, before shifting --- .../src/test/java/li/strolch/utils/time/PeriodHelperTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/li.strolch.utils/src/test/java/li/strolch/utils/time/PeriodHelperTest.java b/li.strolch.utils/src/test/java/li/strolch/utils/time/PeriodHelperTest.java index 9fe9e707d..b7320e3f7 100644 --- a/li.strolch.utils/src/test/java/li/strolch/utils/time/PeriodHelperTest.java +++ b/li.strolch.utils/src/test/java/li/strolch/utils/time/PeriodHelperTest.java @@ -611,7 +611,7 @@ public class PeriodHelperTest { ZonedDateTime shifted = shiftByMultipleOfPeriod(d1, d2, PeriodDuration.parse("PT8H")); - ZonedDateTime expected = LocalDate.of(2021, 4, 26).atStartOfDay(ZoneId.systemDefault()); + ZonedDateTime expected = LocalDate.of(2021, 4, 25).atStartOfDay(ZoneId.systemDefault()); assertEquals(shifted.toString(), expected, shifted); } @@ -622,7 +622,7 @@ public class PeriodHelperTest { ZonedDateTime shifted = shiftByMultipleOfPeriod(d1, d2, PeriodDuration.parse("PT8H")); - ZonedDateTime expected = LocalDate.of(2021, 4, 26).atStartOfDay(ZoneId.systemDefault()); + ZonedDateTime expected = LocalDate.of(2021, 4, 25).atStartOfDay(ZoneId.systemDefault()); assertEquals(shifted.toString(), expected, shifted); } }