src/eric7/PluginManager/PluginManager.py

branch
eric7
changeset 10192
f457742dd3d6
parent 10124
834c76d6ab4d
child 10213
0d0683edaf24
--- a/src/eric7/PluginManager/PluginManager.py	Sun Sep 03 17:35:15 2023 +0200
+++ b/src/eric7/PluginManager/PluginManager.py	Mon Sep 04 17:58:15 2023 +0200
@@ -1257,9 +1257,10 @@
 
         elif period in [1, 2, 3] and pathlib.Path(self.pluginRepositoryFile).exists():
             lastModified = datetime.datetime.fromtimestamp(
-                pathlib.Path(self.pluginRepositoryFile).stat().st_mtime
+                pathlib.Path(self.pluginRepositoryFile).stat().st_mtime,
+                tz=datetime.timezone.utc,
             )
-            now = datetime.datetime.now()
+            now = datetime.datetime.now(tz=datetime.timezone.utc)
             delta = now - lastModified
             if (
                 (period == 1 and delta.days < 1)

eric ide

mercurial