mirror of
https://github.com/bckelley/tconnectsync.git
synced 2026-08-24 03:34:12 -05:00
secret: use TZ to infer TIMEZONE_NAME if set
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user