summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-10-07 11:11:07 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-10-07 11:11:07 +0200
commita4524cd9afd5446d2f1e8a5bcdb88217e864fde5 (patch)
tree8434bea6eadace52d013d52c898d788d7157c01c /src
parentAdd a shortcut for search (diff)
downloadnheko-a4524cd9afd5446d2f1e8a5bcdb88217e864fde5.tar.xz
Fix date separator
Diffstat (limited to 'src')
-rw-r--r--src/timeline/TimelineModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index 3ce854a4..0eec5cae 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -549,7 +549,7 @@ TimelineModel::data(const mtx::events::collections::TimelineEvents &event, int r
     case Day: {
         QDateTime prevDate = origin_server_ts(event);
         prevDate.setTime(QTime());
-        return {prevDate.toMSecsSinceEpoch()};
+        return QVariant(prevDate.toMSecsSinceEpoch());
     }
     case Timestamp:
         return QVariant(origin_server_ts(event));