src/eric7/UI/UserInterface.py

branch
eric7
changeset 10192
f457742dd3d6
parent 10158
b5aadedf4214
child 10206
d6921563be6c
--- a/src/eric7/UI/UserInterface.py	Sun Sep 03 17:35:15 2023 +0200
+++ b/src/eric7/UI/UserInterface.py	Mon Sep 04 17:58:15 2023 +0200
@@ -1707,7 +1707,9 @@
                 if os.path.exists(filename):
                     # eric was installed via pip (i.e. eric-ide)
                     with contextlib.suppress(OSError):
-                        installDateTime = datetime.datetime.now(tz=None)
+                        installDateTime = datetime.datetime.now(
+                            tz=datetime.timezone.utc
+                        )
                         with open(filename, "r") as infoFile:
                             installInfo = json.load(infoFile)
                         installInfo["guessed"] = True
@@ -1768,7 +1770,7 @@
                 ) > os.path.getmtime(installInfoFile):
                     # eric was updated via pip (i.e. eric-ide)
                     # just update the installation date and time
-                    installDateTime = datetime.datetime.now(tz=None)
+                    installDateTime = datetime.datetime.now(tz=datetime.timezone.utc)
                     installInfo["installed_on"] = installDateTime.strftime(
                         "%Y-%m-%d %H:%M:%S"
                     )

eric ide

mercurial