Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

change django time zone

timezones = pytz.all_timezones

print(timezones)
OUTPUT
['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis ... 'Universal', 'W-SU', 'WET', 'Zulu']
TIME_ZONE = "Africa/Abidjan"

print(TIME_ZONE)
OUTPUT
Africa/Abidjan
Comment

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
Comment

PREVIOUS NEXT
Code Example
Python :: ban command in discord.py 
Python :: python remove first element from list 
Python :: pd.read_excel column data type 
Python :: Delete file in python Using the os module 
Python :: python remove duplicate numbers 
Python :: read binary image python 
Python :: change text in legend matplotlib 
Python :: how to make a stopwatch in python 
Python :: E: Unable to locate package python-gobject 
Python :: defualt image django 
Python :: how to convert utf-16 file to utf-8 in python 
Python :: find sum of 2 numbers in array using python 
Python :: how to clear a list in python 
Python :: shutdown flask server with request 
Python :: python convert string to byte array 
Python :: python mean 
Python :: python-telegram-bot 
Python :: python formatting strings 
Python :: Access the Response Methods and Attributes in python Get the HTML of the page 
Python :: pandas dataframe lists as columns 
Python :: dataframe to dict without index 
Python :: loop over twodimensional array python 
Python :: separate a string in python 
Python :: python max key dictionary key getter 
Python :: python soup 
Python :: python pad with spaces 
Python :: beautiful soup 4 
Python :: numpy find columns containing nan 
Python :: python read file from same directory 
Python :: rmse python 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =