From cc99fdfe0ca46f28f0d94b19b66fcb66bc9dbd81 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Thu, 9 Feb 2023 14:06:50 +0100 Subject: [PATCH] Fix: nicer fix --- js/localState.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/localState.js b/js/localState.js index bcf5955..5aeb23e 100644 --- a/js/localState.js +++ b/js/localState.js @@ -79,7 +79,7 @@ document.addEventListener("alpine:init", () => { } case 3: { this.time = - parseInt(((new Date().getTime() - this.startedAt) / 1000).toFixed(2) * 1000); + Math.floor(((new Date().getTime() - this.startedAt) / 1000).toFixed(2) * 1000); this.startedAt = null; sayNumber(this.time / 10);