diff --git a/modules/boursorama/pages.py b/modules/boursorama/pages.py index 31629879c3338d7cbe32b5aea52df1e4bc136391..b4d5efbdbbf3aa8b4cc0c15bb185f5dc6eb4162d 100644 --- a/modules/boursorama/pages.py +++ b/modules/boursorama/pages.py @@ -953,8 +953,9 @@ def submit_info(self, amount, label, exec_date): else: assert self.get_option(form.el.xpath('//select[@id="Characteristics_schedulingType"]')[0], 'Différé') == '2' form['Characteristics[schedulingType]'] = '2' - form['Characteristics[scheduledDate][day]'] = exec_date.strftime('%d') - form['Characteristics[scheduledDate][month]'] = exec_date.strftime('%m') + # If we let the 0 in the front of the month or the day like 02, the website will not interpret the good date + form['Characteristics[scheduledDate][day]'] = exec_date.strftime('%d').lstrip("0") + form['Characteristics[scheduledDate][month]'] = exec_date.strftime('%m').lstrip("0") form['Characteristics[scheduledDate][year]'] = exec_date.strftime('%Y') form['Characteristics[notice]'] = 'none'