diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py index 5bde2680b8..7a8c83af09 100644 --- a/django/utils/dateformat.py +++ b/django/utils/dateformat.py @@ -13,12 +13,15 @@ Usage: import calendar import datetime import time +from email.utils import format_datetime as format_datetime_rfc5322 from django.utils.dates import ( MONTHS, MONTHS_3, MONTHS_ALT, MONTHS_AP, WEEKDAYS, WEEKDAYS_ABBR, ) from django.utils.regex_helper import _lazy_re_compile -from django.utils.timezone import get_default_timezone, is_aware, is_naive +from django.utils.timezone import ( + get_default_timezone, is_aware, is_naive, make_aware, +) from django.utils.translation import gettext as _ re_formatchars = _lazy_re_compile(r'(?