From 999b46a904364c71ad48e36db30bdcf14567c88c Mon Sep 17 00:00:00 2001 From: scoobybejesus Date: Thu, 26 Nov 2020 10:13:22 -0500 Subject: [PATCH] CSV import. Fixed ISO date parsing. --- src/crptls_lib/csv_import_accts_txns.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crptls_lib/csv_import_accts_txns.rs b/src/crptls_lib/csv_import_accts_txns.rs index aeb744d..5720697 100644 --- a/src/crptls_lib/csv_import_accts_txns.rs +++ b/src/crptls_lib/csv_import_accts_txns.rs @@ -230,8 +230,8 @@ fn import_transactions( let separator = &settings.input_file_date_separator; if iso_date_style { - format_yyyy = "%Y".to_owned() + separator + "%d" + separator + "%m"; - format_yy = "%y".to_owned() + separator + "%d" + separator + "%m"; + format_yyyy = "%Y".to_owned() + separator + "%m" + separator + "%d"; + format_yy = "%y".to_owned() + separator + "%m" + separator + "%d"; } else { format_yyyy = "%m".to_owned() + separator + "%d" + separator + "%Y"; format_yy = "%m".to_owned() + separator + "%d" + separator + "%y";