Use correct date format

This commit is contained in:
Loren Burkholder 2021-07-30 08:44:07 -04:00
parent 7dcdd51a8b
commit f48f244dcb
1 changed files with 1 additions and 2 deletions

View File

@ -106,8 +106,7 @@ ReadReceiptsModel::dateFormat(const QDateTime &then) const
auto days = then.daysTo(now);
if (days == 0)
return tr("Today, %1")
.arg(QLocale::system().toString(then.time(), QLocale::ShortFormat));
return QLocale::system().toString(then.time(), QLocale::ShortFormat);
else if (days < 2)
return tr("Yesterday, %1")
.arg(QLocale::system().toString(then.time(), QLocale::ShortFormat));