aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.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/guiutil.cpp
parentb20ad0eb16b9142a246a4f64c4c81ce89d51d7f4 (diff)
refactor: replace QDateTime::fromTime_t with QDateTime::fromSecsSinceEpoch
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r--src/qt/guiutil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp
index ecdfce2f5a..e98e50ba14 100644
--- a/src/qt/guiutil.cpp
+++ b/src/qt/guiutil.cpp
@@ -81,7 +81,7 @@ QString dateTimeStr(const QDateTime &date)
QString dateTimeStr(qint64 nTime)
{
- return dateTimeStr(QDateTime::fromTime_t((qint32)nTime));
+ return dateTimeStr(QDateTime::fromSecsSinceEpoch(nTime));
}
QFont fixedPitchFont(bool use_embedded_font)