mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] Retrieve current date in user's timezone
[FIX] Default to current date instead of tomorrow
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user