NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix current hour check for uneven timezones (#11484)
Nicolas Mowendb496ec52583
diff --git a/web/src/utils/dateUtil.ts b/web/src/utils/dateUtil.tsindex 999e1d2110..c9fc511df5 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;}