Use QLocale::LongFormat

This commit is contained in:
Jonas Kvinge 2020-07-18 04:22:59 +02:00
parent 08b2945623
commit dc7047e3c2
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@
#include "core/iconloader.h"
#include <QWidget>
#include <QLocale>
#include <QTimer>
#include <QDate>
#include <QString>
@ -145,7 +146,7 @@ void LoginStateWidget::SetExpires(const QDate &expires) {
ui_->expires->setVisible(expires.isValid());
if (expires.isValid()) {
const QString expires_text = expires.toString(Qt::SystemLocaleLongDate);
const QString expires_text = QLocale().toString(expires, QLocale::LongFormat);
ui_->expires_label->setText(tr("Expires on %1").arg("<b>" + expires_text + "</b>"));
}
}