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

chiiph at torproject.org chiiph at torproject.org
Fri Oct 7 19:20:37 UTC 2011


commit 02765836b3b284fea26a30d9baa05e05b0fcf12f
Author: Tomas Touceda <chiiph at torproject.org>
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()) {





More information about the tor-commits mailing list