Skip to content

Commit

Permalink
Ensure that the minutes field in playback indicator is zero-padded.
Browse files Browse the repository at this point in the history
The minutes field should be zero-padded as long as the playback media is longer than 9 minutes (including hours).

Fixes #1438.
  • Loading branch information
bnjmnt4n committed Nov 4, 2018
1 parent aef5669 commit a676a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/pages/player-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a676a20

Please sign in to comment.