diff --git a/src/mumble/Cert.cpp b/src/mumble/Cert.cpp
index d7708394011..4a7774b5bbc 100644
--- a/src/mumble/Cert.cpp
+++ b/src/mumble/Cert.cpp
@@ -96,11 +96,13 @@ void CertView::setCert(const QList< QSslCertificate > &cert) {
else
qlSubjectEmail->setText(tr("(none)"));
+ const auto expiryDateStr = QLocale::system().toString(qscCert.expiryDate(), QLocale::ShortFormat);
+
if (qscCert.expiryDate() <= QDateTime::currentDateTime())
- qlExpiry->setText(QString::fromLatin1("%1")
- .arg(qscCert.expiryDate().toString(Qt::SystemLocaleDate).toHtmlEscaped()));
+ qlExpiry->setText(
+ QString::fromLatin1("%1").arg(expiryDateStr.toHtmlEscaped()));
else
- qlExpiry->setText(qscCert.expiryDate().toString(Qt::SystemLocaleDate));
+ qlExpiry->setText(expiryDateStr);
if (qlCert.count() > 1)
qscCert = qlCert.last();
diff --git a/src/mumble/Log.cpp b/src/mumble/Log.cpp
index 5b68baf7bd9..226df1b58ec 100644
--- a/src/mumble/Log.cpp
+++ b/src/mumble/Log.cpp
@@ -732,7 +732,7 @@ void Log::log(MsgType mt, const QString &console, const QString &terse, bool own
qdDate = dt.date();
tc.insertBlock();
tc.insertHtml(
- tr("[Date changed to %1]\n").arg(qdDate.toString(Qt::DefaultLocaleShortDate).toHtmlEscaped()));
+ tr("[Date changed to %1]\n").arg(QLocale().toString(qdDate, QLocale::ShortFormat).toHtmlEscaped()));
tc.movePosition(QTextCursor::End);
}