eric6/Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8240
93b8a353c4bf
--- a/eric6/Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py	Tue Mar 02 17:17:09 2021 +0100
@@ -25,7 +25,7 @@
     """
     return (
         QDateTime.fromTime_t(int(seconds))
-        .toTimeSpec(Qt.LocalTime)
+        .toTimeSpec(Qt.TimeSpec.LocalTime)
         .toString("yyyy-MM-dd hh:mm:ss")
     )
 
@@ -37,7 +37,8 @@
     @param seconds time in seconds since epoch to be formatted (float or long)
     @return date (QDate)
     """
-    return QDateTime.fromTime_t(int(seconds)).toTimeSpec(Qt.LocalTime).date()
+    return QDateTime.fromTime_t(int(seconds)).toTimeSpec(
+        Qt.TimeSpec.LocalTime).date()
 
 
 def getServersPath():

eric ide

mercurial