Skip to content

Commit

Permalink
Adjust date math (#11485)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed May 22, 2024
1 parent db496ec commit 01e387e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/utils/dateUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 01e387e

Please sign in to comment.