From 80fed34d164a8a7f8a44c341deedaa5eabad81ce Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 24 May 2022 17:22:55 +0200 Subject: [PATCH] Qt6: use setSecsSinceEpoch --- src/utils/TxFiatHistory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/TxFiatHistory.cpp b/src/utils/TxFiatHistory.cpp index 725cbc1..6736de0 100644 --- a/src/utils/TxFiatHistory.cpp +++ b/src/utils/TxFiatHistory.cpp @@ -14,7 +14,7 @@ TxFiatHistory::TxFiatHistory(int genesis_timestamp, const QString &configDirecto double TxFiatHistory::get(int timestamp) { QDateTime ts; - ts.setTime_t(timestamp); + ts.setSecsSinceEpoch(timestamp); auto key = ts.toString("yyyyMMdd"); return this->get(key); // USD }