fix grace period in quick-entry form (#3504)

This commit is contained in:
Jelle Sebreghts
2022-09-03 00:49:16 +02:00
committed by GitHub
parent 00906851b5
commit 1763a2efff

View File

@@ -86,9 +86,9 @@ final class LockdownService
}
// further validate entries inside of the most recent lockdown
if ($timesheetStart > $lockdownStart && $timesheetStart < $lockdownEnd) {
if ($timesheetStart >= $lockdownStart && $timesheetStart <= $lockdownEnd) {
// if grace period is still in effect, validation succeeds
if ($now < $lockdownGrace) {
if ($now <= $lockdownGrace) {
return true;
}