From 9c913cf2e51f35b4a0f0a436bd24a947cf067f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sat, 22 Aug 2020 20:19:38 +0300 Subject: [PATCH] Fixing bug in msToTime.js --- client/funcs/msToTime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/funcs/msToTime.js b/client/funcs/msToTime.js index 14f3fdd..58e09be 100644 --- a/client/funcs/msToTime.js +++ b/client/funcs/msToTime.js @@ -2,7 +2,7 @@ module.exports = function msToTime(duration, format) { var seconds = Math.floor((duration / 1000) % 60), minutes = Math.floor((duration / (1000 * 60)) % 60), hours = Math.floor((duration / (1000 * 60 * 60)) % 24); - days = Math.floor((duration / (1000 * 60 * 60 * 24)) % 24); + days = Math.floor((duration / (1000 * 60 * 60 * 24))); days = (days < 10) ? "0" + days : days; hours = (hours < 10) ? "0" + hours : hours;