Skip to content

Commit

Permalink
chore: remove windows platform timezone set (langgenius#8712)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjlarry authored and lau-td committed Oct 23, 2024
1 parent cb8efc9 commit 646a23c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@

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()


Expand Down

0 comments on commit 646a23c

Please sign in to comment.