From b972e8c0716dc39661b055ebc289d2b9b6d7d34f Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Fri, 29 Nov 2024 01:57:18 +0100 Subject: [PATCH] Core: fix deprecation warning for utcnow() in setup.py (#4170) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f075551d..59c2d698 100644 --- a/setup.py +++ b/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.