From c53a3cb81808f3f717636522ebb87c064ae1ff47 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sun, 20 Mar 2022 23:19:04 -0700 Subject: [PATCH] Fix tiny timing bug. --- src/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.ts b/src/common.ts index 0b3016ab..27bf72e7 100644 --- a/src/common.ts +++ b/src/common.ts @@ -611,7 +611,7 @@ export function getEventDurationString(event: FrigateEvent): string { const end = fromUnixTime(event.end_time); const hours = differenceInHours(end, start); const minutes = differenceInMinutes(end, start) - hours * 60; - const seconds = differenceInSeconds(end, start) - hours * 60 - minutes * 60; + const seconds = differenceInSeconds(end, start) - hours * 60 * 60 - minutes * 60; let duration = ''; if (hours) {