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