Room: show month for previous years dates

This commit is contained in:
miruka 2020-01-05 16:00:08 -04:00
parent 9990fecc74
commit d8e18c3337

View File

@ -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 {