From a676a20054dcb3c53cb626b24172816e31f13c49 Mon Sep 17 00:00:00 2001
From: Benjamin Tan <demoneaux@gmail.com>
Date: Sun, 4 Nov 2018 13:26:34 +0800
Subject: [PATCH] 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.
---
 src/renderer/pages/player-page.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/renderer/pages/player-page.js b/src/renderer/pages/player-page.js
index 6cb1f86339..eb4f669cbe 100644
--- a/src/renderer/pages/player-page.js
+++ b/src/renderer/pages/player-page.js
@@ -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) {