1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-28 04:19:59 +00:00

More bugfixes for time and datetime.time

This commit is contained in:
Ozzie Isaacs 2022-05-01 10:38:31 +02:00
parent 7b45324149
commit 49655e9f2d

View File

@ -1302,7 +1302,7 @@ def edit_scheduledtasks():
duration_field = list()
for n in range(24):
time_field.append((n , format_time(time(hour=n), format="short",)))
time_field.append((n, format_time(datetime_time(hour=n), format="short",)))
for n in range(5, 65, 5):
t = timedelta(hours=n // 60, minutes=n % 60)
duration_field.append((n, format_timedelta(t, threshold=.9)))