mediaplayer: qml: add hour digits to time2str function 05/21805/1 7.99.3 8.0.0 8.0.1 halibut/7.99.3 halibut/8.0.0 halibut/8.0.1 halibut_7.99.3 halibut_8.0.0 halibut_8.0.1
authorMatt Ranostay <matt.ranostay@konsulko.com>
Tue, 2 Jul 2019 23:06:45 +0000 (16:06 -0700)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Tue, 2 Jul 2019 23:29:39 +0000 (16:29 -0700)
Bug-AGL: SPEC-2595
Change-Id: I6c8b9b9af0a1b900f447551ebde90b57413721d0
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
app/MediaPlayer.qml

index 089fcd0..85328a9 100644 (file)
@@ -40,7 +40,7 @@ ApplicationWindow {
         property string status: "stopped"
 
         function time2str(value) {
-            return Qt.formatTime(new Date(value), 'mm:ss')
+            return Qt.formatTime(new Date(value), (value > 3600000) ? 'hh:mm:ss' : 'mm:ss')
         }
     }