ActivityWidget: Set timespec to UTC for JSON values.
authorKlaas Freitag <freitag@owncloud.com>
Mon, 15 Feb 2016 16:57:03 +0000 (17:57 +0100)
committerKlaas 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

index 20994e181da81de1cc3fe8032a5b70da1b6d5106..48bc137781efa768228f2b4d619b4997c99da993 100644 (file)
@@ -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);
     }