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')}`