Skip to content

Commit ef0368f

Browse files
timmo001MindFreeze
andauthored
Update src/common/datetime/check_time.ts
Co-authored-by: Petar Petrov <[email protected]>
1 parent 8fc305e commit ef0368f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/datetime/check_time.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ export const checkTimeInRange = (
9999
}
100100

101101
if (afterDate) {
102-
return isAfter(now, afterDate) || now.getTime() === afterDate.getTime();
102+
return !isBefore(now, afterDate);
103103
}
104104

105105
if (beforeDate) {
106-
return isBefore(now, beforeDate) || now.getTime() === beforeDate.getTime();
106+
return !isAfter(now, beforeDate);
107107
}
108108

109109
return true;

0 commit comments

Comments
 (0)