„tv_program.py“ ändern

This commit is contained in:
HDValentin 2023-10-22 18:27:06 +02:00
parent 30a5156aac
commit 160a7bae23

View File

@ -58,7 +58,7 @@ def getValues(id, start_time, end_time):
title = a.get('title')
st = a.get('startTime')
d = a.get('duration')
start = time.strftime("%-H:%M", time.localtime(st))
start = time.strftime("%H:%M", time.localtime(st))
# Split the start time into hours and minutes
start_hours, start_minutes = map(int, start.split(":"))
day = time.strftime("%d", time.localtime(int(st)))