diff --git a/page/start/countdown.js b/page/start/countdown.js index 4460b9f..b074da8 100644 --- a/page/start/countdown.js +++ b/page/start/countdown.js @@ -31,8 +31,8 @@ async function countdown_redraw(){ let hours_raw = Math.floor((difference - (days_raw * 86400000)) / (3600000)); let hours = (hours_raw < 10 ? ("0" + hours_raw) : hours_raw); - // minutes - let minutes_raw = Math.floor((difference - (days_raw * 86400000) - (hours_raw * 3600000)) / (60000)); + // minutes (NOTE: As this is the last unit, we use `ceil` here) + let minutes_raw = Math.ceil((difference - (days_raw * 86400000) - (hours_raw * 3600000)) / (60000)); let minutes = (minutes_raw < 10 ? ("0" + minutes_raw) : minutes_raw);