While setting the timezone for a Django server, I made a stupid mistake in the settings.py file:
There is nothing wrong with the parameter names and syntax. After loading up the server, Django keeps using UTC time despite the fact that I have set
TIME_ZONE = 'Asia/Shanghai'
The problem is caused by placing
USE_TZ. The order of these two lines matter here. The right way to do is: