Den 15-06-2010 22:14, Jannis Leidel skrev:

As mentioned in the docs [1], the date filter won't apply any localization if not given a 
specific formatting string or the name of predefined format, such as 
"DATE_FORMAT".

So given your above example this is required to make the date filter query the locale 
system for the current locale's format called "DATE_FORMAT":

   {{ object.published_on|date:"DATE_FORMAT" }}


Hope that helps,

Jannis


1: http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#date



Thanks, I had not noticed that if you don't specify any formatting information no localization will be applied.

Anyway, using the notation above does not change anything.

Finn

--
You received this message because you are subscribed to the Google Groups "Django 
I18N" group.
To post to this group, send email to django-i...@googlegroups.com.
To unsubscribe from this group, send email to 
django-i18n+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-i18n?hl=en.

Reply via email to