Update settings.py

This commit is contained in:
vabene1111 2023-11-29 19:28:19 +01:00 committed by GitHub
parent 8b9a09b268
commit 9b18cab145
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -452,7 +452,7 @@ LANGUAGE_CODE = 'en'
if os.getenv('TIMEZONE') is not None:
print('DEPRECATION WARNING: Environment var "TIMEZONE" is deprecated. Please use "TZ" instead.')
TIME_ZONE = bool(int(os.getenv('TIMEZONE')))
TIME_ZONE = os.getenv('TIMEZONE') if os.getenv('TIMEZONE') else 'Europe/Berlin'
else:
TIME_ZONE = os.getenv('TZ') if os.getenv('TZ') else 'Europe/Berlin'