From b2b4034c5b32852c88a410e04a832e394987b0a2 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sun, 20 Mar 2022 23:15:37 -0700 Subject: [PATCH] Fix tiny timing bug. --- web/src/components/RecordingPlaylist.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/RecordingPlaylist.jsx b/web/src/components/RecordingPlaylist.jsx index 3b3ff1568..85ac27c02 100644 --- a/web/src/components/RecordingPlaylist.jsx +++ b/web/src/components/RecordingPlaylist.jsx @@ -102,7 +102,7 @@ export function EventCard({ camera, event, delay }) { 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; duration = ''; if (hours) duration += `${hours}h `; if (minutes) duration += `${minutes}m `;