I'm trying to get my Django app work with the current user's time zone but I'm not getting any results...
In my settings.py file I set:
TIME_ZONE = 'UTC'
And in my views.py
, I set at the top of the code:
activate(settings.TIME_ZONE)
But this is not working, while creating a post, is getting my last time zone that was 'Madrid', instead of my current time zone.
Is there a way to make this work?
Thank you!
From https://docs.djangoproject.com/en/3.1/topics/i18n/timezones/