Core: fix deprecation warning for utcnow() in setup.py (#4170)
This commit is contained in:
parent
faeb54224e
commit
b972e8c071
2
setup.py
2
setup.py
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue