From 8fa3a714c25dd91f09526bdd1bf93c17665876ea Mon Sep 17 00:00:00 2001 From: Gabriele Date: Sun, 8 Feb 2015 14:43:14 +0100 Subject: [PATCH] Use system format to display dates in logs --- src/gui/executionlog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/executionlog.cpp b/src/gui/executionlog.cpp index 39614432b..7c2be8f4f 100644 --- a/src/gui/executionlog.cpp +++ b/src/gui/executionlog.cpp @@ -88,7 +88,7 @@ void ExecutionLog::addLogMessage(const Log::Msg &msg) color = QApplication::palette().color(QPalette::WindowText); } - text = "" + time.toString("dd/MM/yyyy hh:mm:ss") + " - " + msg.message + ""; + text = "" + time.toString(Qt::SystemLocaleShortDate) + " - " + msg.message + ""; m_msgList->appendLine(text); } @@ -99,12 +99,12 @@ void ExecutionLog::addPeerMessage(const Log::Peer& peer) if (peer.blocked) #if LIBTORRENT_VERSION_NUM < 10000 - text = "" + time.toString("dd/MM/yyyy hh:mm:ss") + " - " + tr("%1 was blocked", "x.y.z.w was blocked").arg(peer.ip); + text = "" + time.toString(Qt::SystemLocaleShortDate) + " - " + tr("%1 was blocked", "x.y.z.w was blocked").arg(peer.ip); #else - text = "" + time.toString("dd/MM/yyyy hh:mm:ss") + " - " + tr("%1 was blocked %2", "x.y.z.w was blocked").arg(peer.ip).arg(peer.reason); + text = "" + time.toString(Qt::SystemLocaleShortDate) + " - " + tr("%1 was blocked %2", "x.y.z.w was blocked").arg(peer.ip).arg(peer.reason); #endif else - text = "" + time.toString("dd/MM/yyyy hh:mm:ss") + " - " + tr("%1 was banned", "x.y.z.w was banned").arg(peer.ip); + text = "" + time.toString(Qt::SystemLocaleShortDate) + " - " + tr("%1 was banned", "x.y.z.w was banned").arg(peer.ip); m_peerList->appendLine(text); }