Skip to content
Snippets Groups Projects
Unverified Commit 3cb4209d authored by Loren Burkholder's avatar Loren Burkholder Committed by GitHub
Browse files

Reformat dates

parent 330b9d62
No related branches found
No related tags found
No related merge requests found
Pipeline #1495 failed
......@@ -106,13 +106,14 @@ ReadReceiptsModel::dateFormat(const QDateTime &then) const
auto days = then.daysTo(now);
if (days == 0)
return tr("Today %1")
return tr("Today, %1")
.arg(QLocale::system().toString(then.time(), QLocale::ShortFormat));
else if (days < 2)
return tr("Yesterday %1")
return tr("Yesterday, %1")
.arg(QLocale::system().toString(then.time(), QLocale::ShortFormat));
else if (days < 7)
return QString("%1 %2")
//: %1 is the name of the current day, %2 is the time the read receipt was read. The result may look like this: Monday, 7:15
return QString("%1, %2")
.arg(then.toString("dddd"))
.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