fix: correct time comparison logic in clock-in validation
This commit is contained in:
@@ -39,7 +39,7 @@ class TimeWindowValidator implements ClockInValidator {
|
||||
const Duration(minutes: _earlyWindowMinutes),
|
||||
);
|
||||
|
||||
if (DateTime.now().isBefore(windowStart)) {
|
||||
if (windowStart.isBefore(DateTime.now())) {
|
||||
return const ClockInValidationResult.invalid('too_early_clock_in');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user