Ensure that the minutes field in playback indicator is zero-padded.

The minutes field should be zero-padded as long as the playback media is longer than 9 minutes (including hours).

Fixes #1438.
This commit is contained in:
Benjamin Tan
2018-11-04 13:26:34 +08:00
parent aef5669b76
commit a676a20054

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) {