From: Flavio Tordini Date: Wed, 16 Sep 2015 14:27:17 +0000 (+0200) Subject: Remove time form date format X-Git-Tag: 2.5~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a9210dd021b73d75ce946c4b917266f68446e6f7;p=minitube Remove time form date format --- 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; }