Fix shuttle timer not displaying leading 0 (#49366)

The shuttle timer on the status displays doesn't display leading 0s in 
the seconds counter for numbers less than 10.
This commit is contained in:
Timberpoes
2020-02-16 22:28:02 +00:00
committed by GitHub
parent 77e8fbcd32
commit 7d95ce2aaa
+1 -1
View File
@@ -704,7 +704,7 @@
if(timeleft > 1 HOURS)
return "--:--"
else if(timeleft > 0)
return "[add_leading(num2text((timeleft / 60) % 60), 2, "0")]:[add_leading(num2text(timeleft % 60), 2, " ")]"
return "[add_leading(num2text((timeleft / 60) % 60), 2, "0")]:[add_leading(num2text(timeleft % 60), 2, "0")]"
else
return "00:00"