﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
15267	now template tag does not recognize predefined formats	creecode@…	nobody	"The documentation for the now template tag < http://docs.djangoproject.com/en/dev/ref/templates/builtins/#now > says in part...

Given format can be one of the predefined ones DATE_FORMAT, DATETIME_FORMAT, SHORT_DATE_FORMAT or SHORT_DATETIME_FORMAT, or a custom format, same as the date filter.

I tried...

{% now ""DATE_FORMAT"" %}

...and get back...

WedAMPSTEPST0FebE_February-0800RFebAMPST

The predefined format has been processed as a custom format.  I have USE_I18N and USE_L10N set to True, and
LANGUAGE_CODE is 'en-us' in settings.py.  This is happening with Django 1.2.4, 1.2.5 and appears to effect trunk.

It appears from a quick glance at the source that the NowNode has no code in place to process the predefined formats.

Here is my initial query about this problem on django users < http://groups.google.com/group/django-users/browse_thread/thread/cf80ea434c1112e8/ff21567e65d8ccf6#ff21567e65d8ccf6 >.

I have attached a patch which I believe brings the code into sync with the docs."		closed	Template system	1.2		duplicate	now template tag predefined format		Unreviewed	1	0	0	0	0	0
