mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Use default-constructed QLocale for date/time/whatever else formatting
Qt 6 chenged the QDateTime API to use QLocale::c() rather than QLocale::system(), using default-constructed QLocale will make this consistent and overradable application-wide Other formating use-cases as QLocale::decimalPoint use default-constructed QLocale now, too
This commit is contained in:
@@ -1145,7 +1145,7 @@ HistoryService::PreparedText HistoryService::prepareCallScheduledText(
|
||||
Ui::Text::WithEntities);
|
||||
}
|
||||
};
|
||||
const auto time = scheduled.time().toString(cTimeFormat());
|
||||
const auto time = QLocale().toString(scheduled.time(), cTimeFormat());
|
||||
const auto prepareGeneric = [&] {
|
||||
prepareWithDate(tr::lng_group_call_starts_date(
|
||||
tr::now,
|
||||
|
Reference in New Issue
Block a user