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;