[Pkg-owncloud-commits] [owncloud-client] 164/470: Handle server timezone data correctly #4521

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu May 12 16:24:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 2bba68e05965cab40674dfaf1fa8ef988934d96b
Author: Christian Kamm <mail at ckamm.de>
Date:   Thu Mar 17 13:00:44 2016 +0100

    Handle server timezone data correctly #4521
    
    The date we receive from the server is an ISO8601 datetime that
    includes the offset from UTC. Qt does correctly parse this
    information and creates the appropriate QDateTime object.
    
    Calling setTimeSpec(UTC) will force the timezone offset to 0 and
    thereby change the referenced point in time to an incorrect one.
---
 src/gui/activitywidget.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gui/activitywidget.cpp b/src/gui/activitywidget.cpp
index 6e81030..265ce42 100644
--- a/src/gui/activitywidget.cpp
+++ b/src/gui/activitywidget.cpp
@@ -183,7 +183,6 @@ void ActivityListModel::slotActivitiesReceived(const QVariantMap& json, int stat
         a._file     = json.value("file").toString();
         a._link     = json.value("link").toUrl();
         a._dateTime = json.value("date").toDateTime();
-        a._dateTime.setTimeSpec(Qt::UTC);
         list.append(a);
     }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list