Fix date in ActivityWidget and remove unnecessary string conversion
authorMichael Schuster <michael@schuster.ms>
Tue, 24 Dec 2019 07:26:16 +0000 (08:26 +0100)
committerMichael Schuster <48932272+misch7@users.noreply.github.com>
Tue, 24 Dec 2019 07:53:14 +0000 (08:53 +0100)
commite07859fb3cc8451a180a3677f9eabe3c320af9b8
tree414344524fe3662c89901284b582ce09a606d399
parent9b034a2eb02a4d12c6561b783b7685748b09a65e
Fix date in ActivityWidget and remove unnecessary string conversion

The local date and time value was converted into a string, just to be converted
into another string, to be converted to a value once again, returning zero as
the result. This caused the widget to always display "now".

Looks like this was a simply copy and paste mistake from this line in
ActivityListModel::slotActivitiesReceived:

a._dateTime = QDateTime::fromString(json.value("date").toString(), Qt::ISODate);

Signed-off-by: Michael Schuster <michael@schuster.ms>
src/gui/activitywidget.cpp