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

[tor-commits] [vidalia/master] Force qdatetime to be UTC before converting to LocalTime



commit 02765836b3b284fea26a30d9baa05e05b0fcf12f
Author: Tomas Touceda <chiiph@xxxxxxxxxxxxxx>
Date:   Thu Jun 2 23:00:48 2011 -0300

    Force qdatetime to be UTC before converting to LocalTime
---
 src/vidalia/config/ServerPage.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/vidalia/config/ServerPage.cpp b/src/vidalia/config/ServerPage.cpp
index aaadbfc..1579286 100644
--- a/src/vidalia/config/ServerPage.cpp
+++ b/src/vidalia/config/ServerPage.cpp
@@ -590,6 +590,9 @@ ServerPage::displayBridgeUsage()
     if (!timeStarted.isValid())
       goto err;
 
+    // Default is LocalTime, force UTC
+    timeStarted.setTimeSpec(Qt::UTC);
+
     QStringList summary = keyvals.value("CountrySummary")
                                  .split(",", QString::SkipEmptyParts);
     if (summary.isEmpty()) {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits