Use correct date format

This commit is contained in:
Loren Burkholder 2021-07-30 08:44:07 -04:00
parent 7dcdd51a8b
commit f48f244dcb

View file

@ -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));