aboutsummaryrefslogtreecommitdiff
path: root/src/qt/rpcconsole.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2021-05-31 12:59:05 +0800
committerfanquake <fanquake@gmail.com>2021-08-24 15:06:46 +0800
commit27257b39bfa3e24d1a25d6d811ad4530f09d351a (patch)
tree46bb4a47d604b4afea590c2fd67e3a4924d2a2c4 /src/qt/rpcconsole.cpp
parentb20ad0eb16b9142a246a4f64c4c81ce89d51d7f4 (diff)
downloadbitcoin-27257b39bfa3e24d1a25d6d811ad4530f09d351a.tar.xz
refactor: replace QDateTime::fromTime_t with QDateTime::fromSecsSinceEpoch
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r--src/qt/rpcconsole.cpp2
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();