mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix trailing seconds in date formatting.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user