Skip to content

Commit

Permalink
Get local timezone if not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
tsbarnes committed Sep 9, 2021
1 parent 2f70cb2 commit 480edbc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from datetime import datetime


try:
from local_settings import DEBUG
except ImportError:
Expand Down Expand Up @@ -31,7 +34,7 @@
try:
from local_settings import TIMEZONE
except ImportError:
TIMEZONE = "UTC"
TIMEZONE = datetime.now().astimezone().tzinfo

try:
from local_settings import SCREENS
Expand Down

0 comments on commit 480edbc

Please sign in to comment.