From 229965ef75bfd35d859cf1f699bb1b6dae53f21e Mon Sep 17 00:00:00 2001 From: eLBati Date: Mon, 31 Jul 2017 14:28:03 +0200 Subject: [PATCH] FIX case like 2017-06-01+02:00 --- account_bank_statement_import_camt/camt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_bank_statement_import_camt/camt.py b/account_bank_statement_import_camt/camt.py index 10261ae8..707fdfc9 100644 --- a/account_bank_statement_import_camt/camt.py +++ b/account_bank_statement_import_camt/camt.py @@ -223,7 +223,7 @@ class CamtParser(object): transactions.extend(self.parse_entry(ns, entry_node, transaction)) statement['transactions'] = transactions if statement['transactions']: - execution_date = statement['transactions'][0].execution_date + execution_date = statement['transactions'][0].execution_date[:10] statement.date = datetime.strptime(execution_date, "%Y-%m-%d") # Prepend date of first transaction to improve id uniquenes if execution_date not in statement.statement_id: