diff --git a/src/client/funcs/msToTime.js b/src/client/funcs/msToTime.js index 94009a3..24574ca 100644 --- a/src/client/funcs/msToTime.js +++ b/src/client/funcs/msToTime.js @@ -1,5 +1,5 @@ module.exports = function msToTime(duration) { - var seconds = Math.floor((duration / 1000) % 60), + let 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)));