Skip to content

Commit

Permalink
update timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyi-Lin committed Jun 22, 2024
1 parent b4aa099 commit 69f92df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swankit/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def is_windows() -> bool:

def create_time() -> str:
"""获取当前时间(UTC时区)"""
return datetime.datetime.now(datetime.UTC).isoformat()
return datetime.datetime.now(datetime.timezone.utc).isoformat()


def get_save_dir() -> str:
Expand Down

0 comments on commit 69f92df

Please sign in to comment.