Use application-wide time format in remaining td_ui places

This commit is contained in:
Ilya Fedin
2022-10-17 07:04:44 +04:00
committed by John Preston
parent f9bf68461d
commit 2c1933bdb8
2 changed files with 2 additions and 2 deletions
@@ -290,7 +290,7 @@ void GroupCallBar::paint(Painter &p) {
const auto parsed = base::unixtime::parse(_content.scheduleDate);
const auto date = parsed.date();
const auto time = parsed.time().toString(
QLocale::system().timeFormat(QLocale::ShortFormat));
Ui::Integration::Instance().timeFormat());
const auto today = QDate::currentDate();
if (date == today) {
return tr::lng_group_call_starts_today(tr::now, lt_time, time);