From a3435e518f3e0476a53c9afdc7bb83f59004b8e7 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 9 Mar 2025 21:27:25 +0100 Subject: [PATCH] Fix "X min remaining" for events longer than 59min --- .../static/pretalx_broadcast_tools/room_timer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pretalx_broadcast_tools/static/pretalx_broadcast_tools/room_timer.js b/pretalx_broadcast_tools/static/pretalx_broadcast_tools/room_timer.js index 36c4a23..b00442d 100644 --- a/pretalx_broadcast_tools/static/pretalx_broadcast_tools/room_timer.js +++ b/pretalx_broadcast_tools/static/pretalx_broadcast_tools/room_timer.js @@ -67,7 +67,7 @@ function update_room_info() { } else { diff = scheduled_end - now; let diff_s = Math.floor(Math.floor(diff / 1000) % 60); - let diff_m = Math.floor(diff / 1000 / 60) % 60; + let diff_m = Math.floor(diff / 1000 / 60); timeleft.innerHTML = diff_m + 'min ' + diff_s + 'sec';