summaryrefslogtreecommitdiff
path: root/board.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'board.cpp')
-rw-r--r--board.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/board.cpp b/board.cpp
index 329626f..1f12b0e 100644
--- a/board.cpp
+++ b/board.cpp
@@ -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");
}
}