Fix time formatting issue

This commit is contained in:
Antonia 2024-02-07 22:57:56 +01:00
parent f4c0773437
commit 477f86e006

View file

@ -44,7 +44,7 @@ if response["checkedIn"] :
name = s["ds100"] name = s["ds100"]
else : else :
name = s["name"] name = s["name"]
arrtime = time.strftime("%H:%m", time.localtime(int(s["realTime"]))) arrtime = time.strftime("%H:%M", time.localtime(int(s["realTime"])))
delay = (int(s["realTime"]) - int(s["scheduledTime"])) // 60 delay = (int(s["realTime"]) - int(s["scheduledTime"])) // 60
s = f'{name} {arrtime}' s = f'{name} {arrtime}'
if delay > 0 : if delay > 0 :