show wallet transaction dates

This commit is contained in:
woodser 2022-08-31 13:12:02 -04:00
parent 24a8ecea2b
commit dbc7ff265a
3 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,6 @@ import bisq.core.offer.placeoffer.PlaceOfferProtocol;
import bisq.core.provider.price.PriceFeedService;
import bisq.core.support.dispute.arbitration.arbitrator.Arbitrator;
import bisq.core.support.dispute.arbitration.arbitrator.ArbitratorManager;
import bisq.core.support.dispute.mediation.mediator.Mediator;
import bisq.core.support.dispute.mediation.mediator.MediatorManager;
import bisq.core.trade.ClosedTradableManager;
import bisq.core.trade.TradableList;

View file

@ -66,7 +66,6 @@ import bisq.network.p2p.P2PService;
import bisq.network.p2p.network.TorNetworkNode;
import com.google.common.collect.ImmutableList;
import bisq.common.ClockWatcher;
import bisq.common.UserThread;
import bisq.common.config.Config;
import bisq.common.crypto.KeyRing;
import bisq.common.handlers.ErrorMessageHandler;

View file

@ -174,7 +174,9 @@ class TransactionsListItem {
}
}
this.date = new Date(0); // TODO: convert height to date
// get tx date/time
Long timestamp = tx.getBlock() == null ? System.currentTimeMillis() : tx.getBlock().getTimestamp() * 1000l;
this.date = new Date(timestamp);
dateString = DisplayUtils.formatDateTime(date);
isDustAttackTx = received && valueSentToMe.value < ignoreDustThreshold;