Opened 18 years ago

Closed 18 years ago

#1498 closed defect (duplicate)

No escaping for DateFormat in 'date' filter

Reported by: waylan@… Owned by: Adrian Holovaty
Component: Template system Version: dev
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

Description

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: http://groups.google.com/group/django-users/browse_thread/thread/608da74525d82372/05968d618dbdecfa#05968d618dbdecfa

Change History (1)

comment:1 by dcf@…, 18 years ago

Resolution: duplicate
Status: newclosed

A duplicate of #1198.

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