diff options
| author | jvm-odoo <jvm@odoo.com> | 2019-11-18 07:41:34 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-11-18 11:35:19 +0000 |
| commit | 6188378e57e4d74604a5b25c496700ef42b79650 (patch) | |
| tree | f3025deccfedd9922feb8eb19354ef77163456e4 /addons/web/static/src/js/views/basic/basic_view.js | |
| parent | 94e91972d47ba47c61124b7d8606b8aab3c13a3a (diff) | |
[FIX] web_editor: fix wrong datetime parsing
Reproduce the issue
- Install Events
- Set the english default format date to %d/%m/%Y
- Create an event & edit the date
The date is set correctly in the backend
- Edit the date of an event on the website directly
The date format is still the old one
Cause
The `from_html` method of DateTime was using `parser.parse` and
ignore the user's date format.
This commit changes `parser.parse` into `datetime.strptime` taking
into consideration the user's date format.
closes odoo/odoo#40415
X-original-commit: d00c0e317f8affbe8bea231972c2b6da70b9f240
Signed-off-by: Jason Van Malder <jasonvanmalder@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_view.js')
0 files changed, 0 insertions, 0 deletions
