mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Use application-wide time format in remaining td_ui places
This commit is contained in:
parent
f9bf68461d
commit
2c1933bdb8
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ rpl::producer<QString> StartsWhenText(rpl::producer<TimeId> 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())),
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue