diff --git a/src/utils.js b/src/utils.js index 874cfb8..f26ded7 100644 --- a/src/utils.js +++ b/src/utils.js @@ -71,7 +71,7 @@ function formatTime(sec_num) { let hours = Math.floor(sec_num / 3600); let minutes = Math.floor((sec_num - (hours * 3600)) / 60); - let seconds = sec_num - (hours * 3600) - (minutes * 60); + let seconds = Math.round(sec_num - (hours * 3600) - (minutes * 60)); if (hours < 10) {hours = "0"+hours;} if (minutes < 10) {minutes = "0"+minutes;}