mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
Qt6: use setSecsSinceEpoch
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user