Resolve warnings of datetime library (#2874)

This commit is contained in:
Emmanuel Ferdman
2025-05-23 09:35:41 +03:00
committed by GitHub
parent 17a42e5877
commit d557aef9d8
2 changed files with 2 additions and 2 deletions

View File

@@ -560,7 +560,7 @@ def dump_sysinfo():
import datetime
text = sysinfo.get()
filename = f"sysinfo-{datetime.datetime.utcnow().strftime('%Y-%m-%d-%H-%M')}.json"
filename = f"sysinfo-{datetime.datetime.now(datetime.timezone.utc).strftime('%Y-%m-%d-%H-%M')}.json"
with open(filename, "w", encoding="utf8") as file:
file.write(text)