mozilla / addons

☂ Umbrella repository for Mozilla Addons ✨
Other
125 stars 41 forks source link

Set `USE_TZ` in settings #1991

Open diox opened 7 months ago

diox commented 7 months ago

The following warning is raised when running addons-server: RemovedInDjango50Warning: The default value of USE_TZ will change from False to True in Django 5.0. Set USE_TZ to False in your project settings if you want to keep the current default behavior.

addons-server generally assumes dates are in UTC. The containers should run with UTC as the system timezone. So maybe we can enable USE_TZ, but we need to double-check that it won't have negative impact on the way dates are then stored and returned in MySQL/Elasticsearch/etc.

┆Issue is synchronized with this Jira Task

KevinMind commented 4 months ago

Old Jira Ticket: https://mozilla-hub.atlassian.net/browse/ADDSRV-718