From 833eb47f4ac3e158cc8b5d6ae6ccc232c5ba7298 Mon Sep 17 00:00:00 2001 From: NAYRAND JEREMIE Date: Sun, 28 Oct 2018 19:03:12 +0100 Subject: [PATCH] Support lower version of Qt --- src/senttxstore.cpp | 2 +- src/txtablemodel.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/senttxstore.cpp b/src/senttxstore.cpp index 656fe05..8c9c7f5 100644 --- a/src/senttxstore.cpp +++ b/src/senttxstore.cpp @@ -87,7 +87,7 @@ void SentTxStore::addToSentTx(Tx tx, QString txid) { QJsonObject txItem; txItem["type"] = "sent"; txItem["from"] = tx.fromAddr; - txItem["datetime"] = QDateTime().currentSecsSinceEpoch(); + txItem["datetime"] = QDateTime().currentMSecsSinceEpoch(); txItem["address"] = QString(); // The sent address is blank, to be consistent with t-Addr sent behaviour txItem["txid"] = txid; txItem["amount"] = -totalAmount; diff --git a/src/txtablemodel.cpp b/src/txtablemodel.cpp index d3834a1..96fbe3b 100644 --- a/src/txtablemodel.cpp +++ b/src/txtablemodel.cpp @@ -98,7 +98,7 @@ void TxTableModel::updateAllData() { else return addr; } - case 2: return QDateTime::fromSecsSinceEpoch(modeldata->at(index.row()).datetime).toLocalTime().toString(); + case 2: return QDateTime::fromMSecsSinceEpoch(modeldata->at(index.row()).datetime).toLocalTime().toString(); case 3: return Settings::getInstance()->getZECDisplayFormat(modeldata->at(index.row()).amount); } } @@ -114,7 +114,7 @@ void TxTableModel::updateAllData() { else return addr; } - case 2: return QDateTime::fromSecsSinceEpoch(modeldata->at(index.row()).datetime).toLocalTime().toString(); + case 2: return QDateTime::fromMSecsSinceEpoch(modeldata->at(index.row()).datetime).toLocalTime().toString(); case 3: return Settings::getInstance()->getUSDFormat(modeldata->at(index.row()).amount); } }