You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want post times to be displayed to users in their local times. I have TIME_ZONE = 'UTC' and USE_TZ = True in my settings.py file. I have also installed "pytz." The times are currently displayed in UTC time.
I have attempted to use the following in a template:
I want post times to be displayed to users in their local times. I have TIME_ZONE = 'UTC' and USE_TZ = True in my settings.py file. I have also installed "pytz." The times are currently displayed in UTC time.
I have attempted to use the following in a template:
However this has no effect on the display times.
I put this in the template as a test:
and it displays "UTC"
How can I get the times to display in the user's local time zone?
The text was updated successfully, but these errors were encountered: