NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Use browser timezone if not specified in config (#6205)
lucas_nz3c72b960429b
diff --git a/web/src/utils/dateUtil.ts b/web/src/utils/dateUtil.tsindex e5630d345c..d991910c66 100644--- a/web/src/utils/dateUtil.ts+++ b/web/src/utils/dateUtil.ts@@ -56,7 +56,7 @@ export const formatUnixTimestampToDateTime = (unixTimestamp: number, config: Dat// use strftime_fmt if defined in config fileif (strftime_fmt) {- const strftime_locale = strftime.timezone(getUTCOffset(date, timezone)).localizeByIdentifier(locale);+ const strftime_locale = strftime.timezone(getUTCOffset(date, timezone || Intl.DateTimeFormat().resolvedOptions().timeZone)).localizeByIdentifier(locale);return strftime_locale(strftime_fmt, date);}