Skip to content
Snippets Groups Projects
Commit f48f244d authored by Loren Burkholder's avatar Loren Burkholder
Browse files

Use correct date format

parent 7dcdd51a
No related branches found
No related tags found
No related merge requests found
Pipeline #1498 passed
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment