I made a web app using django, I'm not sure about the timezones and stuff. I have the user's preferred timezone, how can I set this timezone relative to that particular user? or will it automatically adjust to the user's timezone?
Asked
Active
Viewed 184 times
1 Answers
-1
You can set the time zone that you want django to use in the settings.py
eg settings.py
TIME_ZONE = 'Europe/Berlin'

June Muoti
- 19
- 4
-
I have multiple users using the app, each of their timezones will be different. – akajash Jun 02 '20 at 11:20
-
then you'll have to use pytz package. link>> http://pytz.sourceforge.net/ – June Muoti Jun 03 '20 at 07:30