mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-06 05:37:50 +02:00
refactor: Replace deprecated Qt::SystemLocale{Short,Long}Date
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QList>
|
||||
#include <QLocale>
|
||||
#include <QModelIndex>
|
||||
#include <QVariant>
|
||||
|
||||
@@ -122,7 +123,7 @@ QVariant BanTableModel::data(const QModelIndex &index, int role) const
|
||||
case Bantime:
|
||||
QDateTime date = QDateTime::fromMSecsSinceEpoch(0);
|
||||
date = date.addSecs(rec->banEntry.nBanUntil);
|
||||
return date.toString(Qt::SystemLocaleLongDate);
|
||||
return QLocale::system().toString(date, QLocale::LongFormat);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user