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