Qt6: use setSecsSinceEpoch

This commit is contained in:
tobtoht
2022-05-24 17:22:55 +02:00
parent a4328d07a8
commit 80fed34d16
+1 -1
View File
@@ -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
}