diff options
author | Nikolay A. Fetisov <naf@altlinux.ru> | 2021-06-22 15:26:46 +0300 |
---|---|---|
committer | Nikolay A. Fetisov <naf@altlinux.ru> | 2021-06-22 15:26:46 +0300 |
commit | aa31642430d69463138b7275fa019696d52dae44 (patch) | |
tree | bfd1b88b48d63398242695a3f26ab11f88ef3187 /src/usersdialog.cpp | |
parent | 81f18424377dd9cd0b0522c317bb7f5af171d6d5 (diff) |
Fix keys created/expires dates in the users dialog window
Diffstat (limited to 'src/usersdialog.cpp')
-rw-r--r-- | src/usersdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usersdialog.cpp b/src/usersdialog.cpp index e8ca418e..b89da883 100644 --- a/src/usersdialog.cpp +++ b/src/usersdialog.cpp @@ -150,11 +150,11 @@ void UsersDialog::populateList(const QString &filter) { QString userText = user.name + "\n" + user.key_id; if (user.created.toSecsSinceEpoch() > 0) { userText += " " + tr("created") + " " + - user.created.toString(QLocale::system().toString(QDate::currentDate(), QLocale::ShortFormat)); + QLocale::system().toString(user.created, QLocale::ShortFormat); } if (user.expiry.toSecsSinceEpoch() > 0) userText += " " + tr("expires") + " " + - user.expiry.toString(QLocale::system().toString(QDate::currentDate(), QLocale::ShortFormat)); + QLocale::system().toString(user.expiry, QLocale::ShortFormat); auto *item = new QListWidgetItem(userText, ui->listWidget); item->setCheckState(user.enabled ? Qt::Checked : Qt::Unchecked); item->setData(Qt::UserRole, QVariant::fromValue(&user)); |