changed remote totals to traditional time

This commit is contained in:
Louis Heredero 2025-02-02 17:34:29 +01:00
parent 87607da643
commit 3b4ae7a55a
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7

View File

@ -297,7 +297,9 @@ class Table {
Array.from(this.clockings.querySelector(".clocking.remote-total").cells).forEach((cell, i) => {
let endI = startI + cell.colSpan
let remote = this.clockingRemotes.slice(startI, endI).reduce((a, b) => a + b, 0)
cell.innerText = Math.round(remote * 100) / 100
let hour = Math.floor(remote)
let min = Math.floor((remote - hour) * 60)
cell.innerText = hour.toString().padStart(2, "0") + ":" + min.toString().padStart(2, "0")
startI = endI
})