Skip to content

Commit b972e8c

Browse files
authored
Core: fix deprecation warning for utcnow() in setup.py (#4170)
1 parent faeb542 commit b972e8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def run(self) -> None:
321321
f"{ex}\nPlease close all AP instances and delete manually.")
322322

323323
# regular cx build
324-
self.buildtime = datetime.datetime.utcnow()
324+
self.buildtime = datetime.datetime.now(datetime.timezone.utc)
325325
super().run()
326326

327327
# manually copy built modules to lib folder. cx_Freeze does not know they exist.

0 commit comments

Comments
 (0)