I'm developing a Django app I have a model in which timestamps is added automatically. I want to show the time to the end users according to their local timezone.
Here is my code:
settings.py
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
model.py
date_created = models.DateTimeField(auto_now_add=True, null=True)
template
{{object.date_created}}
But it is showing UTC time I want this to detect user's current timezone and render date&time accordingly.