mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-16 09:24:47 -06:00
Adjust date math (#11485)
This commit is contained in:
parent
db496ec525
commit
01e387ee9a
@ -305,5 +305,5 @@ export function isCurrentHour(timestamp: number) {
|
||||
|
||||
const timeShift = getTimestampOffset(timestamp);
|
||||
|
||||
return timestamp > now.getTime() / 1000 + timeShift;
|
||||
return timestamp + timeShift > now.getTime() / 1000;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user