#5869: Incorrect description for the NOW format string's 'r' flag --------------------------------------+------------------------------------- Reporter: [EMAIL PROTECTED] | Owner: nobody Status: new | Component: Documentation Version: SVN | Keywords: Stage: Unreviewed | Has_patch: 0 --------------------------------------+------------------------------------- In the [http://www.djangoproject.com/documentation/templates/ Templates documentation], the Now tag's format character `n` is indicated as creating a ''RFC 822 formatted date.'', but the example output `'Thu, 21 Dec 2000 16:01:07 +0200'` is an RFC 2822 date format:
[http://tools.ietf.org/html/rfc822#section-5 RFC 822 section 5.1] defines `date` as {{{ date = 1*2DIGIT month 2DIGIT ; day month year ; e.g. 20 Jun 82 }}} which only has 2-digits year notation. On the other hand, [http://tools.ietf.org/html/rfc2822#section-3.3 RFC 2822 section 3.3] defines `date` as {{{ date = day month year year = 4*DIGIT / obs-year month = (FWS month-name FWS) / obs-month month-name = "Jan" / "Feb" / "Mar" / "Apr" / "May" / "Jun" / "Jul" / "Aug" / "Sep" / "Oct" / "Nov" / "Dec" day = ([FWS] 1*2DIGIT) / obs-day }}} with `year` being either 4 digits or 2 digits (`obs-year` refers to RFC 822 year formatting) -- Ticket URL: <http://code.djangoproject.com/ticket/5869> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
