change TIME_ZONE for env variable

This commit is contained in:
Cayo Puigdefabregas 2024-10-21 13:50:01 +02:00
parent 8d509e31c1
commit ff91bc9ad9
1 changed files with 5 additions and 2 deletions

View File

@ -132,10 +132,13 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE = "en-us"
TIME_ZONE = "UTC"
TIME_ZONE = config("TIME_ZONE", default="UTC")
USE_I18N = True
USE_TZ = False
if TIME_ZONE == "UTC":
USE_TZ = True