mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 17:14:47 +01:00
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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user