Display timestamps using the application locale
[quassel.git] / src / uisupport / uistyle.cpp
index 549f5a9..1e78e38 100644 (file)
@@ -688,10 +688,8 @@ void UiStyle::StyledMessage::style() const
         t = tr("%1").arg(txt); break;
     case Message::DayChange:
     {
-        //: Date format. See http://qt-project.org/doc/qt-4.8/qdate.html#toString
-        QString newDate = timestamp().toString(tr("MMMM d yyyy"));
         //: Day Change Message
-        t = tr("{Day changed to %1}").arg(newDate);
+        t = tr("{Day changed to %1}").arg(QLocale().toString(timestamp(), QLocale().dateFormat()));
     }
         break;
     case Message::Topic: