Fix: seconds to timestamp floor #144

This commit is contained in:
advplyr 2021-10-26 17:55:48 -05:00
parent 1a3a7c5823
commit 806017175d
2 changed files with 5 additions and 2 deletions

View file

@ -44,7 +44,7 @@ Vue.prototype.$secondsToTimestamp = (seconds) => {
_seconds -= _minutes * 60
var _hours = Math.floor(_minutes / 60)
_minutes -= _hours * 60
_seconds = Math.round(_seconds)
_seconds = Math.floor(_seconds)
if (!_hours) {
return `${_minutes}:${_seconds.toString().padStart(2, '0')}`
}