Fix tiny timing bug.
This commit is contained in:
1 parent
da34daf5bd
commit
c53a3cb818
1 file changed
+1
-1
+1
-1
@@ -611,7 +611,7 @@ export function getEventDurationString(event: FrigateEvent): string {
|
|||||||
const end = fromUnixTime(event.end_time);
|
const end = fromUnixTime(event.end_time);
|
||||||
const hours = differenceInHours(end, start);
|
const hours = differenceInHours(end, start);
|
||||||
const minutes = differenceInMinutes(end, start) - hours * 60;
|
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 = '';
|
let duration = '';
|
||||||
|
|
||||||
if (hours) {
|
if (hours) {
|
||||||
|
|||||||
Reference in new issue
Block a user