﻿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
15263	"Make ""now"" templatetag accept locale formats."	Daniel Roseman	nobody	"The documentation on the `now` tag claims that it acts like the `date` filter in accepting ""DATE_FORMAT"" as a shortcut to the locale's current date format. However, this is not the case:

{{{
>>> t=Template(""""""{% now ""DATE_FORMAT"" %}"""""")
>>> t.render(Context())
u'WedPMGMTE_February+0000RFebPMGMT'
}}}

Clearly the string is being interpreted as a literal format, instead of being translated to the locale's date format.

Attached patch fixes this by using the same logic as the `date` filter, including a regression test, and slightly tweaks the awkward wording in the docs."	New feature	closed	Template system	dev	Normal	fixed		creecode@…	Ready for checkin	1	0	0	0	0	0
