mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-20 07:46:05 -04:00
Fix sorting of date
This commit is contained in:
parent
afb8c18d31
commit
3bf861561b
@ -30,12 +30,14 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.Date;
|
||||
import java.util.Optional;
|
||||
|
||||
public class TransactionsListItem {
|
||||
private final Logger log = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
private String date;
|
||||
private String dateString;
|
||||
private final Date date;
|
||||
private final String txId;
|
||||
private final WalletService walletService;
|
||||
private final ConfidenceProgressIndicator progressIndicator;
|
||||
@ -166,7 +168,8 @@ public class TransactionsListItem {
|
||||
details = received ? "Received funds" : "Withdrawn from wallet";
|
||||
}
|
||||
|
||||
date = formatter.formatDateTime(transaction.getUpdateTime());
|
||||
date = transaction.getUpdateTime();
|
||||
dateString = formatter.formatDateTime(date);
|
||||
}
|
||||
|
||||
|
||||
@ -203,8 +206,8 @@ public class TransactionsListItem {
|
||||
return progressIndicator;
|
||||
}
|
||||
|
||||
public final String getDate() {
|
||||
return date;
|
||||
public final String getDateString() {
|
||||
return dateString;
|
||||
}
|
||||
|
||||
|
||||
@ -241,6 +244,10 @@ public class TransactionsListItem {
|
||||
return detailsAvailable;
|
||||
}
|
||||
|
||||
public Date getDate() {
|
||||
return date;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public Tradable getTradable() {
|
||||
return tradable;
|
||||
|
@ -311,7 +311,7 @@ public class TransactionsView extends ActivatableView<VBox, Void> {
|
||||
super.updateItem(item, empty);
|
||||
|
||||
if (item != null && !empty) {
|
||||
setText(item.getDate());
|
||||
setText(item.getDateString());
|
||||
} else {
|
||||
setText("");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user