From 63a76b273acf9e8725fb3deadf0545e2a723d9fe Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 5 Mar 2026 11:25:07 +0400 Subject: [PATCH] Fix trailing seconds in date formatting. --- Telegram/SourceFiles/core/ui_integration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/ui_integration.cpp b/Telegram/SourceFiles/core/ui_integration.cpp index f92ade2989..ddfa3e25ef 100644 --- a/Telegram/SourceFiles/core/ui_integration.cpp +++ b/Telegram/SourceFiles/core/ui_integration.cpp @@ -195,7 +195,7 @@ const auto kBadPrefix = u"http://"_q; if (flags & FormattedDateFlag::Relative) { return FormatDateRelative(date); } - const auto dateTime = base::unixtime::parse(date); + const auto dateTime = QDateTime::fromSecsSinceEpoch(date); const auto locale = QLocale(); auto parts = QStringList(); const auto hasDayOfWeek = (flags & FormattedDateFlag::DayOfWeek);