diff options
-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 = {} |