diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 5e1527d..08889f8 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -139,8 +139,8 @@ function displayTime(rawSeconds: number) { const intSeconds = rawSeconds.toFixed(0); const seconds = intSeconds % 60; - const minutes = (intSeconds / 60).toFixed(0) % 60; - const hours = (intSeconds / 360).toFixed(0); + const minutes = Math.floor((intSeconds / 60)) % 60; + const hours = Math.floor((intSeconds / 3600)); if (hours == 0) { return `${minutes.toString()}:${seconds.toString().padStart(2, 0)}`