Qt6: use setSecsSinceEpoch

This commit is contained in:
tobtoht 2022-05-24 17:22:55 +02:00
parent a4328d07a8
commit 80fed34d16
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -14,7 +14,7 @@ TxFiatHistory::TxFiatHistory(int genesis_timestamp, const QString &configDirecto
double TxFiatHistory::get(int timestamp) { double TxFiatHistory::get(int timestamp) {
QDateTime ts; QDateTime ts;
ts.setTime_t(timestamp); ts.setSecsSinceEpoch(timestamp);
auto key = ts.toString("yyyyMMdd"); auto key = ts.toString("yyyyMMdd");
return this->get(key); // USD return this->get(key); // USD
} }