Core: fix deprecation warning for utcnow() in setup.py (#4170)

This commit is contained in:
Fabian Dill
2024-11-29 01:57:18 +01:00
committed by GitHub
parent faeb54224e
commit b972e8c071

View File

@@ -321,7 +321,7 @@ class BuildExeCommand(cx_Freeze.command.build_exe.build_exe):
f"{ex}\nPlease close all AP instances and delete manually.")
# regular cx build
self.buildtime = datetime.datetime.utcnow()
self.buildtime = datetime.datetime.now(datetime.timezone.utc)
super().run()
# manually copy built modules to lib folder. cx_Freeze does not know they exist.