I'm having difficulty converting this timestamp value to local time using the template tags provided in the Django documentation:
{% load tz %}
{% get_current_timezone as TIME_ZONE %}
{{ private_message.timestamp|timezone:TIME_ZONE|date:'m/d/Y: h:i a' }}
I've tried many different template tags include load localtime
and others. Regardless, the time still displays as UTC.
Settings:
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
And I'm saving the timestamp as timezone.now()
in my views.py
Any help would be greatly appreciated. Thanks!