diff options
Diffstat (limited to 'board.cpp')
-rw-r--r-- | board.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -247,15 +247,15 @@ QString Board::formatDateTime(const QDateTime &dateTime, DateTimePrecisionOption if (precision & (TodayYesterday | RelativeDate)) { if (precision & ShowTime) { const QString time = ldt.time().toString(Qt::DefaultLocaleShortDate); - if (days < 1) { + if (days == 0) { return tr("Today %1").arg(time); - } else if (days <= 1) { + } else if (days == 1) { return tr("Yesterday %1").arg(time); } } else { - if (days < 1) { + if (days == 0) { return tr("Today"); - } else if (days <= 1) { + } else if (days == 1) { return tr("Yesterday"); } } |