Fix trailing seconds in date formatting.

This commit is contained in:
John Preston
2026-03-05 11:25:07 +04:00
parent cc7ad543ee
commit 63a76b273a
+1 -1
View File
@@ -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);