diff options
author | fanquake <fanquake@gmail.com> | 2021-05-31 12:59:05 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-08-24 15:06:46 +0800 |
commit | 27257b39bfa3e24d1a25d6d811ad4530f09d351a (patch) | |
tree | 46bb4a47d604b4afea590c2fd67e3a4924d2a2c4 /src/qt/rpcconsole.cpp | |
parent | b20ad0eb16b9142a246a4f64c4c81ce89d51d7f4 (diff) | |
download | bitcoin-27257b39bfa3e24d1a25d6d811ad4530f09d351a.tar.xz |
refactor: replace QDateTime::fromTime_t with QDateTime::fromSecsSinceEpoch
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r-- | src/qt/rpcconsole.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 56f55363b2..ba3eb80efa 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -651,7 +651,7 @@ void RPCConsole::setClientModel(ClientModel *model, int bestblock_height, int64_ setNumConnections(model->getNumConnections()); connect(model, &ClientModel::numConnectionsChanged, this, &RPCConsole::setNumConnections); - setNumBlocks(bestblock_height, QDateTime::fromTime_t(bestblock_date), verification_progress, false); + setNumBlocks(bestblock_height, QDateTime::fromSecsSinceEpoch(bestblock_date), verification_progress, false); connect(model, &ClientModel::numBlocksChanged, this, &RPCConsole::setNumBlocks); updateNetworkState(); |