Spaces:
Running
Running
Update app.py
Browse files
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 |
|