chore: remove windows platform timezone set (#8712)

pull/8755/head
非法操作 1 year ago committed by GitHub
parent f42ef0624d
commit 9ca2e2c968
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save