mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Use correct date format
This commit is contained in:
parent
7dcdd51a8b
commit
f48f244dcb
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue