diff options
author | Alban Gruin | 2018-01-28 11:54:06 +0100 |
---|---|---|
committer | Alban Gruin | 2018-01-28 11:54:06 +0100 |
commit | ca745d43066dcc1b9f8abd9e242f6af164630b94 (patch) | |
tree | 120556d1027f6ab674968dbe55e4c590d020dbdc /management/commands/_private.py | |
parent | 37d80d84d8ce6cb0a17a0e4179e4c7a453f7fcc2 (diff) |
Revert "Remplacement de l’arithmétique de date et heure par datetime.combine()"
This reverts commit 37d80d84d8ce6cb0a17a0e4179e4c7a453f7fcc2.
Diffstat (limited to 'management/commands/_private.py')
-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): |