[app/mpris] Fix displaying times > 2h
We need to apply the correction for all hours >= 1, not just 1
This commit is contained in:
parent
ea661f7d44
commit
40c155f990
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ Kirigami.Page
|
||||||
|
|
||||||
function msToTime(currentTime, totalTime)
|
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
|
// 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.setDate(2)
|
||||||
currentTime.setHours(currentTime.getHours() - 1)
|
currentTime.setHours(currentTime.getHours() - 1)
|
||||||
|
|
Loading…
Reference in a new issue