mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 10:56:52 +08:00
fix(api): patch Windows timezone set (#1575)
This commit is contained in:
@@ -37,8 +37,12 @@ from libs.passport import PassportService
|
||||
import warnings
|
||||
warnings.simplefilter("ignore", ResourceWarning)
|
||||
|
||||
os.environ['TZ'] = 'UTC'
|
||||
time.tzset()
|
||||
# fix windows platform
|
||||
if os.name == "nt":
|
||||
os.system('tzutil /s "UTC"')
|
||||
else:
|
||||
os.environ['TZ'] = 'UTC'
|
||||
time.tzset()
|
||||
|
||||
|
||||
class DifyApp(Flask):
|
||||
|
||||
Reference in New Issue
Block a user