date & time filters use settings.DATE_FORMAT & settings.TIME_FORMAT, should use i18n
|Reported by:||Owned by:||Adrian Holovaty|
|Severity:||Keywords:||date time i18n|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In django/template/defaultfilters.py, date and time functions (filters) both use a specific setting for their default value.
I think this is wrong, at least what the default value specifies, because when i18n is loaded, it's impossible to change what these output without giving an argument to the filters.
Supplied patch makes both filters use whatever DATE_FORMAT and TIME_FORMAT translate into, which I think seems to be the correct value, as it changes depending on user preference.