[Fix] When shifting by hours, shift one day lest

This commit is contained in:
Robert von Burg 2021-05-26 14:29:38 +02:00
parent 5a05d14bd5
commit 4842adeecf
1 changed files with 1 additions and 1 deletions

View File

@ -250,6 +250,6 @@ public class PeriodHelper {
if (shiftHours < 24)
return date;
return date.plusDays(shiftHours / 24);
return date.plusDays((shiftHours / 24) - 1);
}
}