Skip to content

Commit

Permalink
Update settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vabene1111 authored Nov 29, 2023
1 parent 8b9a09b commit 9b18cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@

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'

Expand Down

0 comments on commit 9b18cab

Please sign in to comment.