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;