From d25826212dca4826b4f44152e62074c5853d0316 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Mon, 22 Jul 2024 13:54:21 -0700 Subject: [PATCH] Bug 799384 - Reconciled date cannot be parsed. Because GncPreSplit::m_date_format wasn't set to the settings date format. Fix that. --- gnucash/import-export/csv-imp/gnc-import-tx.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnucash/import-export/csv-imp/gnc-import-tx.cpp b/gnucash/import-export/csv-imp/gnc-import-tx.cpp index 8db28ce3255..6c2f2837792 100644 --- a/gnucash/import-export/csv-imp/gnc-import-tx.cpp +++ b/gnucash/import-export/csv-imp/gnc-import-tx.cpp @@ -779,7 +779,7 @@ void GncTxImport::update_pre_trans_props (parse_line_t& parsed_line, uint32_t co auto input_vec = std::get(parsed_line); auto trans_props = std::get (parsed_line); - /* Reset date and currency formats for each trans/split props object + /* Reset date format for each trans props object * to ensure column updates use the most recent one */ trans_props->set_date_format (m_settings.m_date_format); trans_props->set_multi_split (m_settings.m_multi_split); @@ -818,6 +818,9 @@ void GncTxImport::update_pre_split_props (parse_line_t& parsed_line, uint32_t co */ auto split_props = std::get (parsed_line); auto trans_props = std::get (parsed_line); + /* Reset date format for each split props object + * to ensure column updates use the most recent one */ + split_props->set_date_format (m_settings.m_date_format); if (m_settings.m_multi_split && trans_props->is_part_of( m_parent)) split_props->set_pre_trans (m_parent); else