Skip to content

Firefly III: a personal finances manager

Fix https://github.com/firefly-iii/firefly-iii/issues/12885

James Cole5e1ecf545c86
diff --git a/changelog.md b/changelog.md
index c7e16a1f67..f031310071 100644
--- a/changelog.md
+++ b/changelog.md
@@ -25,6 +25,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- [Issue 12878](https://github.com/firefly-iii/firefly-iii/issues/12878) (Reconciling Accounts directly from Assets Account page causes 404) reported by @DipeshAggarwal
- #12860
+- #12885
### Security
diff --git a/resources/assets/v3/js/pages/transactions/edit.js b/resources/assets/v3/js/pages/transactions/edit.js
index 487fd385ae..826a70dc71 100644
--- a/resources/assets/v3/js/pages/transactions/edit.js
+++ b/resources/assets/v3/js/pages/transactions/edit.js
@@ -248,7 +248,6 @@ let transactions = function () {
this.groupProperties.title =
data.attributes.group_title ?? data.attributes.transactions[0].description;
this.entries = parseDownloadedSplits(data.attributes.transactions, parseInt(data.id));
-
// set empty arrays
for (let i = 0; i < this.entries.length; i++) {
this.links[i] = []; // empty set of links.
diff --git a/resources/assets/v3/js/pages/transactions/shared/parse-downloaded-splits.js b/resources/assets/v3/js/pages/transactions/shared/parse-downloaded-splits.js
index bf0e2066c1..b19aaff3f0 100644
--- a/resources/assets/v3/js/pages/transactions/shared/parse-downloaded-splits.js
+++ b/resources/assets/v3/js/pages/transactions/shared/parse-downloaded-splits.js
@@ -42,12 +42,12 @@ export function parseDownloadedSplits(downloads, groupId) {
current.piggy_bank_name = download.piggy_bank_name;
// meta dates
- current.book_date = download.book_date;
- current.due_date = download.due_date;
- current.interest_date = download.interest_date;
- current.invoice_date = download.invoice_date;
- current.payment_date = download.payment_date;
- current.process_date = download.process_date;
+ current.book_date = format(new Date(download.book_date), "yyyy-MM-dd");
+ current.due_date = format(new Date(download.due_date), "yyyy-MM-dd");
+ current.interest_date = format(new Date(download.interest_date), "yyyy-MM-dd");
+ current.invoice_date = format(new Date(download.invoice_date), "yyyy-MM-dd");
+ current.payment_date = format(new Date(download.payment_date), "yyyy-MM-dd");
+ current.process_date = format(new Date(download.process_date), "yyyy-MM-dd");
// more meta
current.external_url = download.external_url;