[Pkg-owncloud-commits] [owncloud-client] 40/470: ActivityWidget: Set timespec to UTC for JSON values.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu May 12 16:24:42 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 3cc9019b3785b8f135e7d4b3e4930a96783d420b
Author: Klaas Freitag <freitag at owncloud.com>
Date: Mon Feb 15 17:57:03 2016 +0100
ActivityWidget: Set timespec to UTC for JSON values.
This will fix the problem in #4439 that the time display
jumps if the timezone is changed on windows.
---
src/gui/activitywidget.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gui/activitywidget.cpp b/src/gui/activitywidget.cpp
index 20994e1..48bc137 100644
--- a/src/gui/activitywidget.cpp
+++ b/src/gui/activitywidget.cpp
@@ -182,6 +182,7 @@ 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