Django

Code

Changeset 6640

Show
Ignore:
Timestamp:
11/03/07 20:14:58 (1 year ago)
Author:
gwilson
Message:

Fixed #5869 -- Corrected documentation for now template tag's "r" format character. Thanks, xavier.morel@masklinn.net.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/utils/dateformat.py

    r6358 r6640  
    171171 
    172172    def r(self): 
    173         "RFC 822 formatted date; e.g. 'Thu, 21 Dec 2000 16:01:07 +0200'" 
     173        "RFC 2822 formatted date; e.g. 'Thu, 21 Dec 2000 16:01:07 +0200'" 
    174174        return self.format('D, j M Y H:i:s O') 
    175175 
  • django/trunk/docs/templates.txt

    r6571 r6640  
    741741                      strings 'midnight' and 'noon' if 
    742742                      appropriate. Proprietary extension. 
    743     r                 RFC 822 formatted date.                   ``'Thu, 21 Dec 2000 16:01:07 +0200'`` 
     743    r                 RFC 2822 formatted date.                  ``'Thu, 21 Dec 2000 16:01:07 +0200'`` 
    744744    s                 Seconds, 2 digits with leading zeros.     ``'00'`` to ``'59'`` 
    745745    S                 English ordinal suffix for day of the     ``'st'``, ``'nd'``, ``'rd'`` or ``'th'``