Made timezone configurable

This commit is contained in:
root 2023-06-02 20:41:01 +02:00
parent fad54a6472
commit 742c556d65
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ config = ConfigParser()
config.read('config.ini')
logging.basicConfig(encoding='utf-8', level=logging.INFO, format='%(message)s')
logger = logging.getLogger('waitress')
tz = pytz.timezone(config.get('main', 'timezone')
tz = pytz.timezone(config.get('main', 'timezone'))
@app.after_request
def log_the_request(response):