diff options
Diffstat (limited to 'management/commands')
-rw-r--r-- | management/commands/_private.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/management/commands/_private.py b/management/commands/_private.py index 4e35990..0f87179 100644 --- a/management/commands/_private.py +++ b/management/commands/_private.py @@ -28,7 +28,8 @@ import edt def add_time(date, time): ptime = datetime.datetime.strptime(time, "%H:%M") - return datetime.datetime.combine(date, ptime) + delta = datetime.timedelta(hours=ptime.hour, minutes=ptime.minute) + return date + delta def delete_courses_in_week(source, year, week, today): |