[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r4144: Make Qt set the timespec in the QDateTime parsed from a rout (vidalia/trunk/src/torcontrol)



Author: edmanm
Date: 2009-10-14 17:52:34 -0400 (Wed, 14 Oct 2009)
New Revision: 4144

Modified:
   vidalia/trunk/src/torcontrol/RouterDescriptor.cpp
Log:

Make Qt set the timespec in the QDateTime parsed from a router descriptor
to UTC, if it isn't already. Might fix ticket #doesnotexistyet. Or it might
not.


Modified: vidalia/trunk/src/torcontrol/RouterDescriptor.cpp
===================================================================
--- vidalia/trunk/src/torcontrol/RouterDescriptor.cpp	2009-10-12 00:59:22 UTC (rev 4143)
+++ vidalia/trunk/src/torcontrol/RouterDescriptor.cpp	2009-10-14 21:52:34 UTC (rev 4144)
@@ -45,6 +45,7 @@
       _published = QDateTime::fromString(
                                line.remove(0,qstrlen("published ")),
                                "yyyy-MM-dd HH:mm:ss");
+      _published.setTimeSpec(Qt::UTC);
     } else if (line.startsWith("opt fingerprint ")) {
       _fingerprint = line.remove(0,qstrlen("opt fingerprint "));
       _id = _fingerprint.remove(" ");