mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-02 21:44:56 +02:00
Fix: seconds to timestamp floor #144
This commit is contained in:
parent
1a3a7c5823
commit
806017175d
2 changed files with 5 additions and 2 deletions
|
@ -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')}`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue