From 6686734180a39c1e490ebd7bf93accba95b32a20 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Fri, 18 Oct 2013 10:42:48 +0200 Subject: [PATCH] [FIX] Retrieve current date in user's timezone [FIX] Default to current date instead of tomorrow --- account_banking_sepa_credit_transfer/wizard/export_sepa.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account_banking_sepa_credit_transfer/wizard/export_sepa.py b/account_banking_sepa_credit_transfer/wizard/export_sepa.py index 598962dd6..6a7850535 100644 --- a/account_banking_sepa_credit_transfer/wizard/export_sepa.py +++ b/account_banking_sepa_credit_transfer/wizard/export_sepa.py @@ -138,7 +138,8 @@ class banking_export_sepa_wizard(orm.TransientModel): if sepa_export.prefered_exec_date: my_requested_exec_date = sepa_export.prefered_exec_date else: - my_requested_exec_date = datetime.strftime(datetime.today() + timedelta(days=1), '%Y-%m-%d') + my_requested_exec_date = fields.date.context_today( + self, cr, uid, context=context) pain_ns = { 'xsi': 'http://www.w3.org/2001/XMLSchema-instance',