diff --git a/web/src/utils/dateUtil.ts b/web/src/utils/dateUtil.ts index 999e1d211..c9fc511df 100644 --- a/web/src/utils/dateUtil.ts +++ b/web/src/utils/dateUtil.ts @@ -302,5 +302,8 @@ export function getEndOfDayTimestamp(date: Date) { export function isCurrentHour(timestamp: number) { const now = new Date(); now.setMinutes(0, 0, 0); - return timestamp > now.getTime() / 1000; + + const timeShift = getTimestampOffset(timestamp); + + return timestamp > now.getTime() / 1000 + timeShift; }