Adjust date math (#11485)

This commit is contained in:
Nicolas Mowen
2024-05-22 10:06:40 -06:00
committed by GitHub
parent db496ec525
commit 01e387ee9a

View File

@@ -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;
}