From 1adb2983c49178045a7180a48e2107c877b9f45a Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sat, 11 Jun 2022 17:17:41 -0700 Subject: [PATCH] Use a proper ISO8601 formatted date for Safari/iOS. --- src/utils/frigate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/frigate.ts b/src/utils/frigate.ts index 162cf3c6..6169c0bf 100644 --- a/src/utils/frigate.ts +++ b/src/utils/frigate.ts @@ -34,7 +34,7 @@ const recordingSummarySchema = z day: z.preprocess((arg) => { // Must provide the hour:minute:second on parsing or Javascript will // assume UTC midnight. - return typeof arg === 'string' ? new Date(`${arg} 00:00:00`) : arg; + return typeof arg === 'string' ? new Date(`${arg}T00:00:00`) : arg; }, z.date()), events: z.number(), hours: recordingSummaryHourSchema.array(),