From a9210dd021b73d75ce946c4b917266f68446e6f7 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Wed, 16 Sep 2015 16:27:17 +0200 Subject: [PATCH] Remove time form date format --- src/datautils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datautils.cpp b/src/datautils.cpp index 59e2376..2274f7f 100644 --- a/src/datautils.cpp +++ b/src/datautils.cpp @@ -97,7 +97,7 @@ QString DataUtils::formatDateTime(const QDateTime &dt) { } else if (seconds < (f = 60*60*24*365)) { s = qApp->tr("%n month(s) ago", "", seconds / (60*60*24*30)); } else { - s = dt.toString(Qt::DefaultLocaleShortDate); + s = dt.date().toString(Qt::DefaultLocaleShortDate); } return s; } -- 2.39.5