From 40c155f9903bd4a758b629682f82152034d14d88 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Thu, 4 Feb 2021 14:35:58 +0100 Subject: [PATCH] [app/mpris] Fix displaying times > 2h We need to apply the correction for all hours >= 1, not just 1 --- app/qml/mpris.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/qml/mpris.qml b/app/qml/mpris.qml index 8a7cc9385..2447588ea 100644 --- a/app/qml/mpris.qml +++ b/app/qml/mpris.qml @@ -46,7 +46,7 @@ Kirigami.Page function msToTime(currentTime, totalTime) { - if (totalTime.getHours() == 2) { + if (totalTime.getHours() >= 2) { // Skip a day ahead as Date type's minimum is 1am on the 1st of January and can't go lower currentTime.setDate(2) currentTime.setHours(currentTime.getHours() - 1)