mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-04-14 01:17:50 +02: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);
|
const timeShift = getTimestampOffset(timestamp);
|
||||||
|
|
||||||
return timestamp > now.getTime() / 1000 + timeShift;
|
return timestamp + timeShift > now.getTime() / 1000;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user