eric7/Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py

branch
eric7
changeset 8382
28f7ef365d1b
parent 8318
962bce857696
child 8881
54e42bc2437a
--- a/eric7/Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py	Tue May 25 17:37:59 2021 +0200
+++ b/eric7/Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py	Wed May 26 17:26:12 2021 +0200
@@ -25,7 +25,7 @@
     @return formatted time string (string)
     """
     return (
-        QDateTime.fromTime_t(int(seconds))
+        QDateTime.fromSecsSinceEpoch(int(seconds))
         .toTimeSpec(Qt.TimeSpec.LocalTime)
         .toString("yyyy-MM-dd hh:mm:ss")
     )
@@ -38,7 +38,7 @@
     @param seconds time in seconds since epoch to be formatted (float or long)
     @return date (QDate)
     """
-    return QDateTime.fromTime_t(int(seconds)).toTimeSpec(
+    return QDateTime.fromSecsSinceEpoch(int(seconds)).toTimeSpec(
         Qt.TimeSpec.LocalTime).date()
 
 

eric ide

mercurial