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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user