[Fix] truncate production start to day, before shifting

This commit is contained in:
Robert von Burg 2021-05-26 14:59:53 +02:00
parent 4842adeecf
commit e99e9ad12c
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}