From 8aa58af2b1c3c4787d7e3be59dc3f88fddbb81b8 Mon Sep 17 00:00:00 2001 From: jhao104 Date: Fri, 28 May 2021 14:39:05 +0800 Subject: [PATCH] [update] TIMEZONE --- handler/configHandler.py | 2 +- setting.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/handler/configHandler.py b/handler/configHandler.py index 6104d0944..59ca5647a 100644 --- a/handler/configHandler.py +++ b/handler/configHandler.py @@ -75,5 +75,5 @@ def poolSizeMin(self): @LazyProperty def timezone(self): - return os.getenv("TIMEZONE", getattr(setting, 'TIMEZONE', None)) + return os.getenv("TIMEZONE", setting.TIMEZONE) diff --git a/setting.py b/setting.py index 7b61b8287..a92a18518 100644 --- a/setting.py +++ b/setting.py @@ -85,4 +85,4 @@ # Please uncomment the following line and set a timezone for the scheduler. # Otherwise it will detect the timezone from the system automatically. -# TIMEZONE = "Asia/Shanghai" +TIMEZONE = "Asia/Shanghai"