Use QLocale::LongFormat
This commit is contained in:
parent
08b2945623
commit
dc7047e3c2
|
@ -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>"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue