Answers for "how to set timezone in django"

2

django datetime field timezone

if you  need timezone input from your user, 
 you will need to set USE_TZ = False in setting.py
then use DateTimeField which is naive datetime 
along with CharField to store timezone information in your models.py.
Posted by: Guest on December-09-2020
-1

django timezone settings

Here is the list of valid timezones:

http://en.wikipedia.org/wiki/List_of_tz_database_time_zones

You can use

TIME_ZONE = 'Europe/Istanbul'
for UTC+02:00
Posted by: Guest on March-08-2021

Code answers related to "how to set timezone in django"

Python Answers by Framework

Browse Popular Code Answers by Language