Browse Source

FIX case like 2017-06-01+02:00

pull/111/head
eLBati 7 years ago
parent
commit
229965ef75
  1. 2
      account_bank_statement_import_camt/camt.py

2
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:

Loading…
Cancel
Save