Show date and time in activity log (fixes issue #1683)
authorMichael Schuster <michael@schuster.ms>
Thu, 19 Dec 2019 21:10:37 +0000 (22:10 +0100)
committerMichael Schuster <48932272+misch7@users.noreply.github.com>
Tue, 24 Dec 2019 06:40:42 +0000 (07:40 +0100)
Signed-off-by: Michael Schuster <michael@schuster.ms>
src/gui/activitylistmodel.cpp

index b5ee0c7253ff473fcb877e198c1579c1bd92ed47..e439856959b3f29dc8855ed45f7c66545efd6a9a 100644 (file)
@@ -130,7 +130,7 @@ QVariant ActivityListModel::data(const QModelIndex &index, int role) const
     case ActivityItemDelegate::AccountRole:
         return a._accName;
     case ActivityItemDelegate::PointInTimeRole:
-        return Utility::timeAgoInWords(a._dateTime);
+        return QString("%1 (%2)").arg(a._dateTime.toLocalTime().toString(Qt::DefaultLocaleShortDate), Utility::timeAgoInWords(a._dateTime.toLocalTime()));
     case ActivityItemDelegate::AccountConnectedRole:
         return (ast && ast->isConnected());
     default: