forked from Github/frigate
Adjust date math (#11485)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user