Re: [Django] #9762: template filter |date:"r" not valid RFC 2822 formatted when LANGUAGE_CODE different than english

9 views
Skip to first unread message

Django

unread,
May 5, 2011, 2:44:48 PM5/5/11
to django-...@googlegroups.com
#9762: template filter |date:"r" not valid RFC 2822 formatted when LANGUAGE_CODE
different than english
-------------------------------------+-------------------------------------
Reporter: amele | Owner: kgrandis
Type: | Status: new
Uncategorized | Component: Template system
Milestone: | Severity: Normal
Version: SVN | Keywords: date template
Resolution: | filter
Triage Stage: Accepted | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 1 | Easy pickings: 0
-------------------------------------+-------------------------------------
Changes (by patchhammer):

* needs_better_patch: 0 => 1
* type: => Uncategorized
* severity: => Normal
* easy: => 0


Comment:

rfc2822.3.diff fails to apply cleanly on to trunk

--
Ticket URL: <http://code.djangoproject.com/ticket/9762#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 11, 2012, 11:56:52 AM7/11/12
to django-...@googlegroups.com
#9762: template filter |date:"r" not valid RFC 2822 formatted when LANGUAGE_CODE
different than english
--------------------------------------+------------------------------------
Reporter: amele | Owner: kgrandis
Type: Bug | Status: new
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: date template filter | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by anonymous):

this is still a problem

--
Ticket URL: <https://code.djangoproject.com/ticket/9762#comment:13>

Django

unread,
Aug 26, 2012, 6:44:04 AM8/26/12
to django-...@googlegroups.com
#9762: template filter |date:"r" not valid RFC 2822 formatted when LANGUAGE_CODE
different than english
--------------------------------------+------------------------------------
Reporter: amele | Owner: kgrandis
Type: Bug | Status: new
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: date template filter | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by mitar):

* cc: mmitar@… (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/9762#comment:14>

Django

unread,
Dec 13, 2012, 7:07:59 PM12/13/12
to django-...@googlegroups.com
#9762: template filter |date:"r" not valid RFC 2822 formatted when LANGUAGE_CODE
different than english
--------------------------------------+------------------------------------
Reporter: amele | Owner: kgrandis
Type: Bug | Status: new
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: date template filter | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by anonymous):

guys, this is really annoying...
a workaround is to import the rfc2822_date from django.utils.feedgenerator
and just register it as an own filter.

--
Ticket URL: <https://code.djangoproject.com/ticket/9762#comment:15>

Django

unread,
Nov 21, 2019, 2:45:43 PM11/21/19
to django-...@googlegroups.com
#9762: template filter |date:"r" not valid RFC 2822 formatted when LANGUAGE_CODE
different than english
--------------------------------------+------------------------------------
Reporter: Antonio Melé | Owner: kgrandis
Type: Bug | Status: new
Component: Utilities | Version: master

Severity: Normal | Resolution:
Keywords: date template filter | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Baptiste Mispelon):

* needs_better_patch: 1 => 0
* component: Template system => Utilities


Comment:

Pull request available at https://github.com/django/django/pull/12122

--
Ticket URL: <https://code.djangoproject.com/ticket/9762#comment:16>

Django

unread,
Nov 22, 2019, 7:25:12 AM11/22/19
to django-...@googlegroups.com
#9762: template filter |date:"r" not valid RFC 2822 formatted when LANGUAGE_CODE
different than english
--------------------------------------+------------------------------------
Reporter: Antonio Melé | Owner: kgrandis
Type: Bug | Status: closed
Component: Utilities | Version: master
Severity: Normal | Resolution: fixed

Keywords: date template filter | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"8929afb8ec4bc2bfb95b66c05fc3ab39e3748d91" 8929afb]:
{{{
#!CommitTicketReference repository=""
revision="8929afb8ec4bc2bfb95b66c05fc3ab39e3748d91"
Fixed #9762 -- Made DateFormat.r() locale-independent.

Thanks to Antonio Melé for the original report all those years ago
and to all the contributors who helped along the way.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/9762#comment:17>

Reply all
Reply to author
Forward
0 new messages