summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasiliy Faronov <vfaronov@gmail.com>2016-05-04 13:45:31 +0300
committerTim Graham <timograham@gmail.com>2016-05-10 11:24:51 -0400
commit31e0314979f6aa1c66828b55dd222c32aad94e9e (patch)
tree7c177011f9226150f3575311fa2933cbfbd90b9f
parent207c5b4acd410dd39bac31457dae26a0d15b8b93 (diff)
downloaddjango-31e0314979f6aa1c66828b55dd222c32aad94e9e.tar.gz
Fixed #26580 -- Updated references to obsolete RFC 2822.
Didn't rename django.utils.feedgenerator.rfc2822_date() as some external code may rely on it.
-rw-r--r--django/core/mail/message.py2
-rw-r--r--django/utils/dateformat.py2
-rw-r--r--docs/ref/templates/builtins.txt2
3 files changed, 3 insertions, 3 deletions
diff --git a/django/core/mail/message.py b/django/core/mail/message.py
index e2ee13c7cb..4102a94d76 100644
--- a/django/core/mail/message.py
+++ b/django/core/mail/message.py
@@ -44,7 +44,7 @@ class BadHeaderError(ValueError):
# TODO: replace with email.utils.make_msgid(.., domain=DNS_NAME) when dropping
# Python 2 (Python 2's version doesn't have domain parameter) (#23905).
def make_msgid(idstring=None, domain=None):
- """Returns a string suitable for RFC 2822 compliant Message-ID, e.g:
+ """Returns a string suitable for RFC 5322 compliant Message-ID, e.g:
<20020201195627.33539.96671@nightshade.la.mastaler.com>
diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py
index f82e0098b8..5e39648343 100644
--- a/django/utils/dateformat.py
+++ b/django/utils/dateformat.py
@@ -293,7 +293,7 @@ class DateFormat(TimeFormat):
return self.data.isocalendar()[0]
def r(self):
- "RFC 2822 formatted date; e.g. 'Thu, 21 Dec 2000 16:01:07 +0200'"
+ "RFC 5322 formatted date; e.g. 'Thu, 21 Dec 2000 16:01:07 +0200'"
return self.format('D, j M Y H:i:s O')
def S(self):
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index 893e094fcc..0959679ed7 100644
--- a/docs/ref/templates/builtins.txt
+++ b/docs/ref/templates/builtins.txt
@@ -1352,7 +1352,7 @@ P Time, in 12-hour hours, minutes and ``'1 a.m.'``, ``'1:3
if they're zero and the special-case
strings 'midnight' and 'noon' if
appropriate. Proprietary extension.
-r :rfc:`2822` formatted date. ``'Thu, 21 Dec 2000 16:01:07 +0200'``
+r :rfc:`5322` formatted date. ``'Thu, 21 Dec 2000 16:01:07 +0200'``
s Seconds, 2 digits with leading zeros. ``'00'`` to ``'59'``
S English ordinal suffix for day of the ``'st'``, ``'nd'``, ``'rd'`` or ``'th'``
month, 2 characters.