mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-01 17:57:51 +00:00
cTimeFormat/cDateFormat -> QLocale::ShortFormat
This allows to use platform-specific formatting functions
This commit is contained in:
@@ -1120,8 +1120,8 @@ std::optional<QString> RestrictionError(
|
||||
auto restrictedUntil = channel->restrictedUntil();
|
||||
if (restrictedUntil > 0 && !ChannelData::IsRestrictedForever(restrictedUntil)) {
|
||||
auto restrictedUntilDateTime = base::unixtime::parse(channel->restrictedUntil());
|
||||
auto date = QLocale().toString(restrictedUntilDateTime, cDateFormat());
|
||||
auto time = QLocale().toString(restrictedUntilDateTime, cTimeFormat());
|
||||
auto date = QLocale().toString(restrictedUntilDateTime.date(), QLocale::ShortFormat);
|
||||
auto time = QLocale().toString(restrictedUntilDateTime.time(), QLocale::ShortFormat);
|
||||
|
||||
switch (restriction) {
|
||||
case Flag::SendPolls:
|
||||
|
||||
Reference in New Issue
Block a user