2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Display dates with the system date format

This commit is contained in:
CoderTimZ
2021-10-06 22:37:42 -07:00
committed by John Preston
parent 041c922451
commit c9e24c2283
14 changed files with 33 additions and 15 deletions

View File

@@ -386,7 +386,7 @@ QString OnlineText(TimeId online, TimeId now) {
const auto onlineTime = onlineFull.time().toString(cTimeFormat());
return tr::lng_status_lastseen_yesterday(tr::now, lt_time, onlineTime);
}
const auto date = onlineFull.date().toString(qsl("dd.MM.yy"));
const auto date = onlineFull.date().toString(cDateFormat());
return tr::lng_status_lastseen_date(tr::now, lt_date, date);
}
@@ -412,7 +412,7 @@ QString OnlineTextFull(not_null<UserData*> user, TimeId now) {
const auto onlineTime = onlineFull.time().toString(cTimeFormat());
return tr::lng_status_lastseen_yesterday(tr::now, lt_time, onlineTime);
}
const auto date = onlineFull.date().toString(qsl("dd.MM.yy"));
const auto date = onlineFull.date().toString(cDateFormat());
const auto time = onlineFull.time().toString(cTimeFormat());
return tr::lng_status_lastseen_date_time(tr::now, lt_date, date, lt_time, time);
}