From ea8e3a4b0b409428a13bfe97007449f0d6f714f6 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Thu, 13 Aug 2026 17:07:46 -0400 Subject: [PATCH] fix(board): round overdue countdowns consistently --- TaskTracker.Api/wwwroot/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TaskTracker.Api/wwwroot/js/app.js b/TaskTracker.Api/wwwroot/js/app.js index a2bebe4..98aba2c 100644 --- a/TaskTracker.Api/wwwroot/js/app.js +++ b/TaskTracker.Api/wwwroot/js/app.js @@ -90,7 +90,7 @@ var deltaMilliseconds = dueAt - now; var deltaSeconds = Math.floor(deltaMilliseconds / 1000); var overdue = deltaSeconds < 0; - var totalSeconds = Math.floor(Math.abs(deltaMilliseconds) / 1000); + var totalSeconds = Math.abs(deltaSeconds); countdown.textContent = formatCountdown(totalSeconds, !overdue); countdown.classList.toggle('task-countdown--overdue', overdue); });