From 3b4ae7a55a16130dbb5aa7b430776675e1814393 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Sun, 2 Feb 2025 17:34:29 +0100 Subject: [PATCH] changed remote totals to traditional time --- dispatcher/static/table.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dispatcher/static/table.js b/dispatcher/static/table.js index 9ebbb62..f74d037 100644 --- a/dispatcher/static/table.js +++ b/dispatcher/static/table.js @@ -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 })