secret: use TZ to infer TIMEZONE_NAME if set

This commit is contained in:
James Woglom
2022-01-03 17:58:51 -05:00
parent 2e515efc54
commit 50cb57f11b
+4
View File
@@ -38,6 +38,10 @@ NS_SECRET = get('NS_SECRET', 'apisecret')
TIMEZONE_NAME = get('TIMEZONE_NAME', 'America/New_York')
if not get('TIMEZONE_NAME') and get('TZ'):
print('TZ environment variable is set, overriding TIMEZONE_NAME')
TIMEZONE_NAME = get('TZ')
# Optional configuration
AUTOUPDATE_DEFAULT_SLEEP_SECONDS = get_number('AUTOUPDATE_DEFAULT_SLEEP_SECONDS', '300') # 5 minutes