From 2ada1e3f08ec3934b532be46f685bc6eb76d5b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sat, 22 Aug 2020 20:48:22 +0300 Subject: [PATCH] Fixed typo 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 58e09be..8fafa43 100644 --- a/client/funcs/msToTime.js +++ b/client/funcs/msToTime.js @@ -1,7 +1,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); + hours = Math.floor((duration / (1000 * 60 * 60)) % 24), days = Math.floor((duration / (1000 * 60 * 60 * 24))); days = (days < 10) ? "0" + days : days;