Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
--- a/Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py	Fri Jan 01 16:11:36 2010 +0000
+++ b/Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py	Sat Jan 02 15:11:35 2010 +0000
@@ -21,7 +21,7 @@
     @param seconds time in seconds since epoch to be formatted (float or long)
     @return formatted time string (string)
     """
-    return QDateTime.fromTime_t(long(seconds))\
+    return QDateTime.fromTime_t(int(seconds))\
                     .toTimeSpec(Qt.LocalTime)\
                     .toString("yyyy-MM-dd hh:mm:ss")
 
@@ -32,7 +32,7 @@
     @param seconds time in seconds since epoch to be formatted (float or long)
     @return date (QDate)
     """
-    return QDateTime.fromTime_t(long(seconds)).toTimeSpec(Qt.LocalTime).date()
+    return QDateTime.fromTime_t(int(seconds)).toTimeSpec(Qt.LocalTime).date()
 
 def getServersPath():
     """

eric ide

mercurial