#25758 closed Bug (fixed)
Date filter doesn't use internationalization when USE_L10N is True
Description ¶
Date filter uses settings.DATE_FORMAT by default to format dates, and ignore if django is using internationalization and USE_L10N is True
{{ user.date_joined|date }}
Always format with N j, Y
Maybe this is no a problem because date filter uses to use with a arg, but naturalday filter(of humanize) uses date filter to format dates.
Change History (10)
comment:1 by , 9 years ago
comment:3 by , 9 years ago
Has patch: | set |
---|---|
Needs tests: | set |
Triage Stage: | Unreviewed → Accepted |
I'll accept the ticket since no tests fail if that line from the pull request is removed (same with if arg is None: arg = settings.TIME_FORMAT
in the time filter, but we still need a test to show what this fixes.
comment:5 by , 9 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Solved: https://github.com/django/django/pull/5665