From d8e18c33376e9277f49c27fcfe1dd6cac81d27e7 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 5 Jan 2020 16:00:08 -0400 Subject: [PATCH] Room: show month for previous years dates --- src/gui/MainPane/Room.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/MainPane/Room.qml b/src/gui/MainPane/Room.qml index 6dd3b181..0560a2e0 100644 --- a/src/gui/MainPane/Room.qml +++ b/src/gui/MainPane/Room.qml @@ -63,9 +63,10 @@ HTileDelegate { utils.formatTime(model.last_event_date, false) : // no seconds model.last_event_date.getFullYear() === new Date().getFullYear() ? - Qt.formatDate(model.last_event_date, "d MMM") : // e.g. "5 Dec" + Qt.formatDate(model.last_event_date, "d MMM") : // e.g. "5 Dec" - model.last_event_date.getFullYear() + // model.last_event_date.getFullYear() ? + Qt.formatDate(model.last_event_date, "MMM yyyy") // e.g. "Jan 2020" } contextMenu: HMenu {