From 49655e9f2db89cfc77ddbd2c2c3646ea929edd40 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sun, 1 May 2022 10:38:31 +0200 Subject: [PATCH] More bugfixes for time and datetime.time --- cps/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/admin.py b/cps/admin.py index 3b3ef383..c928fe19 100644 --- a/cps/admin.py +++ b/cps/admin.py @@ -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)))