From 2c1933bdb82088719e5d31fe27616bbd97e441de Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Mon, 17 Oct 2022 07:04:44 +0400 Subject: [PATCH] Use application-wide time format in remaining td_ui places --- .../SourceFiles/calls/group/ui/calls_group_scheduled_labels.cpp | 2 +- Telegram/SourceFiles/ui/chat/group_call_bar.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/calls/group/ui/calls_group_scheduled_labels.cpp b/Telegram/SourceFiles/calls/group/ui/calls_group_scheduled_labels.cpp index dcd7aa7628..aa8bfa9565 100644 --- a/Telegram/SourceFiles/calls/group/ui/calls_group_scheduled_labels.cpp +++ b/Telegram/SourceFiles/calls/group/ui/calls_group_scheduled_labels.cpp @@ -34,7 +34,7 @@ rpl::producer StartsWhenText(rpl::producer date) { const auto tillAfter = tillToday + kDay; const auto time = parsedDate.time().toString( - QLocale::system().timeFormat(QLocale::ShortFormat)); + Ui::Integration::Instance().timeFormat()); auto exact = tr::lng_group_call_starts_short_date( lt_date, rpl::single(langDayOfMonthFull(dateDay.date())), diff --git a/Telegram/SourceFiles/ui/chat/group_call_bar.cpp b/Telegram/SourceFiles/ui/chat/group_call_bar.cpp index 4a743706bc..8b49ea164b 100644 --- a/Telegram/SourceFiles/ui/chat/group_call_bar.cpp +++ b/Telegram/SourceFiles/ui/chat/group_call_bar.cpp @@ -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);