Fix: seconds to timestamp floor #144

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

No files matched your search

+1 -1
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')}`
}