yangtb24 commited on
Commit
6be1fe2
·
verified ·
1 Parent(s): 8e3da9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -11,6 +11,9 @@ from datetime import datetime, timedelta
11
  from apscheduler.schedulers.background import BackgroundScheduler
12
  from flask import Flask, request, jsonify, Response, stream_with_context
13
 
 
 
 
14
  logging.basicConfig(level=logging.INFO,
15
  format='%(asctime)s - %(levelname)s - %(message)s')
16
 
 
11
  from apscheduler.schedulers.background import BackgroundScheduler
12
  from flask import Flask, request, jsonify, Response, stream_with_context
13
 
14
+ os.environ['TZ'] = 'Asia/Shanghai'
15
+ time.tzset()
16
+
17
  logging.basicConfig(level=logging.INFO,
18
  format='%(asctime)s - %(levelname)s - %(message)s')
19