diff --git a/account_bank_statement_import_camt/camt.py b/account_bank_statement_import_camt/camt.py index 10261ae..707fdfc 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: