summaryrefslogtreecommitdiff
path: root/board.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-01 02:49:55 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-01 02:49:55 +0200
commita690870e46508d5b81eb1682be542a93682f51a4 (patch)
treece690dc52e8a822d33159ba73f04f9754221075c /board.cpp
parent5c3ba8460a9784acb784337a2c11b5175fd7c011 (diff)
downloadtapasboard-a690870e46508d5b81eb1682be542a93682f51a4.tar.gz
tapasboard-a690870e46508d5b81eb1682be542a93682f51a4.zip
update translations
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");
}
}