Fix time formatting in links.

This commit is contained in:
John Preston 2021-02-24 15:10:06 +04:00
parent 740ffb3c64
commit 7b80514986
1 changed files with 2 additions and 3 deletions

View File

@ -166,7 +166,7 @@ private:
link.usageLimit)
: tr::lng_group_invite_no_joined(tr::now);
const auto add = [&](const QString &text) {
result += QString::fromUtf8(" \xE2\xB8\xB1 ") + text;
result += QString::fromUtf8(" \xE2\x80\xA2 ") + text;
};
if (revoked) {
return result;
@ -189,8 +189,7 @@ private:
left / 86400));
} else {
const auto time = base::unixtime::parse(link.expireDate).time();
add(time.toString(QLocale::system().dateTimeFormat(
QLocale::LongFormat)));
add(QLocale::system().toString(time, QLocale::LongFormat));
}
}
return result;