Merge pull request #1506 from webtorrent/bnjmnt4n/playback-times

Ensure that the minutes field in playback indicator is zero-padded.
This commit is contained in:
Borewit
2018-11-06 18:37:01 +01:00
committed by GitHub

View File

@@ -735,7 +735,7 @@ function formatTime (time, total) {
}
const totalHours = Math.floor(total / 3600)
const totalMinutes = Math.floor(total % 3600 / 60)
const totalMinutes = Math.floor(total / 60)
const hours = Math.floor(time / 3600)
let minutes = Math.floor(time % 3600 / 60)
if (totalMinutes > 9) {