Opened 13 years ago

Closed 13 years ago

#1498 closed defect (duplicate)

No escaping for DateFormat in 'date' filter

Reported by: waylan@… Owned by: Adrian Holovaty
Component: Template system Version: master
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Escaped characters in the DateFormat only work with the 'now' template tag, but not the 'date' filter. Some examples:

{% now "jS o\f F" %}

will return 13th of March as it should. But when doing this:

{{ post.pub_date|date:"jS o\f F" }}

we get 13th o9:54 March instead.

See this thread for discussion:

Change History (1)

comment:1 Changed 13 years ago by dcf@…

Resolution: duplicate
Status: newclosed

A duplicate of #1198.

Note: See TracTickets for help on using tickets.
Back to Top