projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37924b9
)
ActivityWidget: Set timespec to UTC for JSON values.
author
Klaas Freitag
<freitag@owncloud.com>
Mon, 15 Feb 2016 16:57:03 +0000
(17:57 +0100)
committer
Klaas Freitag
<freitag@owncloud.com>
Mon, 15 Feb 2016 16:59:24 +0000
(17:59 +0100)
This will fix the problem in #4439 that the time display
jumps if the timezone is changed on windows.
src/gui/activitywidget.cpp
patch
|
blob
|
history
diff --git
a/src/gui/activitywidget.cpp
b/src/gui/activitywidget.cpp
index 20994e181da81de1cc3fe8032a5b70da1b6d5106..48bc137781efa768228f2b4d619b4997c99da993 100644
(file)
--- 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);
}