diff options
author | Alban Gruin | 2017-09-07 20:04:10 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-07 20:04:10 +0200 |
commit | bd236d267bfa6857d062733899ca6db5231ddd1d (patch) | |
tree | 1af676d247e11af1fb1e851386321ee3bee25eb2 | |
parent | 43abb9e5746803bf2b415904d11c68f5a3d56720 (diff) |
On rend la date de MàJ retournée au courant de la tz
-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 f7f8435..d54d81b 100644 --- a/management/commands/_private.py +++ b/management/commands/_private.py @@ -145,7 +145,8 @@ def get_update_date(soup): return None day, month, year, hour, minute, second = [int(v) for v in search.groups()] - return datetime.datetime(year, month, day, hour, minute, second) + date = datetime.datetime(year, month, day, hour, minute, second) + return timezone.make_aware(date) def get_weeks(soup): weeks = {} |