ソースを参照

fix(api): patch Windows timezone set (#1575)

tags/0.3.31
Rhon Joe 1年前
コミット
7cda3fe85b
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更6行の追加2行の削除
  1. 6
    2
      api/app.py

+ 6
- 2
api/app.py ファイルの表示

@@ -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):

読み込み中…
キャンセル
保存