From 2883b53ec5110996701b67028de2eb21aceed0de Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Thu, 10 Oct 2024 17:59:25 +0200 Subject: [PATCH] Fix date formatting if not today nor yesterday --- Linphone/tool/Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Linphone/tool/Utils.cpp b/Linphone/tool/Utils.cpp index 13a1f270..9842cb5e 100644 --- a/Linphone/tool/Utils.cpp +++ b/Linphone/tool/Utils.cpp @@ -264,7 +264,7 @@ QString Utils::formatDate(const QDateTime &date, bool includeTime) { else if (date.date() == QDate::currentDate().addDays(-1)) dateDay = tr("Hier"); else { QString format = date.date().year() == QDateTime::currentDateTime().date().year() ? "dd MMMM" : "dd MMMM yyyy"; - auto dateDay = tr(date.date().toString(format).toLocal8Bit().data()); + dateDay = tr(date.date().toString(format).toLocal8Bit().data()); } if (!includeTime) return dateDay;