소스 검색

chore: remove windows platform timezone set (#8712)

tags/0.9.0
非法操作 1 년 전
부모
커밋
9ca2e2c968
No account linked to committer's email address
1개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. 3
    5
      api/app.py

+ 3
- 5
api/app.py 파일 보기

@@ -53,11 +53,9 @@ from services.account_service import AccountService

warnings.simplefilter("ignore", ResourceWarning)

# fix windows platform
if os.name == "nt":
os.system('tzutil /s "UTC"')
else:
os.environ["TZ"] = "UTC"
os.environ["TZ"] = "UTC"
# windows platform not support tzset
if hasattr(time, "tzset"):
time.tzset()



Loading…
취소
저장