2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Display dates with the system date format

This commit is contained in:
CoderTimZ
2021-10-06 22:37:42 -07:00
committed by John Preston
parent 041c922451
commit c9e24c2283
14 changed files with 33 additions and 15 deletions

View File

@@ -1078,7 +1078,7 @@ std::optional<QString> RestrictionError(
auto restrictedUntil = channel->restrictedUntil();
if (restrictedUntil > 0 && !ChannelData::IsRestrictedForever(restrictedUntil)) {
auto restrictedUntilDateTime = base::unixtime::parse(channel->restrictedUntil());
auto date = restrictedUntilDateTime.toString(qsl("dd.MM.yy"));
auto date = restrictedUntilDateTime.toString(cDateFormat());
auto time = restrictedUntilDateTime.toString(cTimeFormat());
switch (restriction) {