Commit 40c155f9 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[app/mpris] Fix displaying times > 2h

We need to apply the correction for all hours >= 1, not just 1
parent ea661f7d
Pipeline #50122 passed with stage
in 5 minutes and 33 seconds
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment