diff --git a/src/main/java/com/sparrowwallet/sparrow/io/WalletTransactions.java b/src/main/java/com/sparrowwallet/sparrow/io/WalletTransactions.java index d3435e79..1afab356 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/WalletTransactions.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/WalletTransactions.java @@ -31,6 +31,10 @@ public class WalletTransactions implements WalletExport { private final WalletForm walletForm; + static { + DATE_FORMAT.setTimeZone(TimeZone.getTimeZone("UTC")); + } + public WalletTransactions(WalletForm walletForm) { this.walletForm = walletForm; } @@ -72,7 +76,7 @@ public class WalletTransactions implements WalletExport { try { CsvWriter writer = new CsvWriter(outputStream, ',', StandardCharsets.UTF_8); - writer.write("Date"); + writer.write("Date (UTC)"); writer.write("Label"); writer.write("Value"); writer.write("Balance"); diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/UtxosController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/UtxosController.java index 98e4d432..40716505 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/UtxosController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/UtxosController.java @@ -480,7 +480,7 @@ public class UtxosController extends WalletFormController implements Initializab if(file != null) { try(FileOutputStream outputStream = new FileOutputStream(file)) { CsvWriter writer = new CsvWriter(outputStream, ',', StandardCharsets.UTF_8); - writer.writeRecord(new String[] {"Date", "Output", "Address", "Label", "Value"}); + writer.writeRecord(new String[] {"Date (UTC)", "Output", "Address", "Label", "Value"}); for(Entry entry : getWalletForm().getWalletUtxosEntry().getChildren()) { UtxoEntry utxoEntry = (UtxoEntry)entry; writer.write(utxoEntry.getBlockTransaction().getDate() == null ? "Unconfirmed" : WalletTransactions.DATE_FORMAT.format(utxoEntry.getBlockTransaction().getDate()));