My project i18n setup worked fine with different languages, except not able to show date time value in language and format that configured with browser preference. I do have USE_L10N = True, but it always show date time in my default language and format LANGUAGE_CODE = ‘en-us’. I’m not specifying anything on .po file for date and time, expected everything default for the locale.
On my model, I have field
created = models.DateTimeField(auto_now_add=True)
On my template file, I have
{% load i18n %}
{% load l10n %}
......
{% if field_name == 'created' %}
<td>{{ object.created|localize }}</td>
......
What did I miss that made it not showing the datetime in browser preferred language?