src/eric7/UI/UserInterface.py

branch
eric7-maintenance
changeset 10222
1146cc8fbf5d
parent 10174
6aac1022f330
parent 10206
d6921563be6c
child 10349
df7edc29cbfb
--- a/src/eric7/UI/UserInterface.py	Fri Sep 01 10:26:51 2023 +0200
+++ b/src/eric7/UI/UserInterface.py	Thu Oct 05 09:59:53 2023 +0200
@@ -573,6 +573,9 @@
         if self.irc is not None:
             self.irc.autoConnected.connect(self.__ircAutoConnected)
 
+        if self.pipWidget is not None:
+            self.preferencesChanged.connect(self.pipWidget.preferencesChanged)
+
         # create the toolbar manager object
         self.toolbarManager = EricToolBarManager(self, self)
         self.toolbarManager.setMainWindow(self)
@@ -1707,7 +1710,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 +1773,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