diff --git a/src/gui/protocolwidget.cpp b/src/gui/protocolwidget.cpp index 2440c361d..baab6191f 100644 --- a/src/gui/protocolwidget.cpp +++ b/src/gui/protocolwidget.cpp @@ -161,17 +161,13 @@ QString ProtocolWidget::timeString(QDateTime dt, QLocale::FormatType format) con { QLocale loc = QLocale::system(); QString timeStr; - QDate today = QDate::currentDate(); if( format == QLocale::NarrowFormat ) { - if( dt.date().day() == today.day() ) { - timeStr = loc.toString(dt.time(), QLocale::NarrowFormat); - } else { - timeStr = loc.toString(dt, QLocale::NarrowFormat); - } + timeStr = loc.toString(dt, QLocale::NarrowFormat); } else { timeStr = loc.toString(dt, format); } + return timeStr; }