mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +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);
|
||||
|
||||
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));
|
||||
|
|
Loading…
Reference in a new issue