From 7ae39ec68a36f9bc5dd60c3a6de8cfa6bfdc02c2 Mon Sep 17 00:00:00 2001 From: Matthew Huntington Date: Fri, 2 Jan 2026 18:51:06 -0500 Subject: [PATCH] round seconds when formatting --- src/libs/time.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/time.js b/src/libs/time.js index 9185afb..09165ec 100644 --- a/src/libs/time.js +++ b/src/libs/time.js @@ -19,7 +19,7 @@ const getAccumulatedSeconds = (newerTime, olderTime) => { } const formatSeconds = (total, includeHours = true) => { - const timeObj = createTimeObj(Math.abs(total)) + const timeObj = createTimeObj(Math.abs(parseInt(total))) let result = (total < 0) ? '-' : '' if(includeHours) { result += `${timeObj.hours}:${timeObj.minutes.toString().padStart(2,'0')}`