Use correct date format
This commit is contained in:
parent
7dcdd51a8b
commit
f48f244dcb
@ -106,8 +106,7 @@ ReadReceiptsModel::dateFormat(const QDateTime &then) const
|
|||||||
auto days = then.daysTo(now);
|
auto days = then.daysTo(now);
|
||||||
|
|
||||||
if (days == 0)
|
if (days == 0)
|
||||||
return tr("Today, %1")
|
return QLocale::system().toString(then.time(), QLocale::ShortFormat);
|
||||||
.arg(QLocale::system().toString(then.time(), QLocale::ShortFormat));
|
|
||||||
else if (days < 2)
|
else if (days < 2)
|
||||||
return tr("Yesterday, %1")
|
return tr("Yesterday, %1")
|
||||||
.arg(QLocale::system().toString(then.time(), QLocale::ShortFormat));
|
.arg(QLocale::system().toString(then.time(), QLocale::ShortFormat));
|
||||||
|
Loading…
Reference in New Issue
Block a user