diff options
| author | Denis Ledoux <dle@odoo.com> | 2018-06-20 12:24:28 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2018-06-20 12:32:29 +0200 |
| commit | e75c0bd2b97659efeb89825e1105cb4b961b89e3 (patch) | |
| tree | 23092444148f148754caf8568448e4b160741c55 /addons/web_editor/static/src | |
| parent | cf15030ed09f7479f5b2701ba101a5bed71f7409 (diff) | |
[FIX] calendar: ensure the recurring dates is inside the limit defined
by datetime
The library `datetime` defines a MINYEAR and MAXYEAR limit.
If you try to play with dates outside of these years limits,
it crashes.
In the case of the opw, the date within its timezone was
within the limit (year 9999), but in the UTC timezone
it was no longer the case (year 10000).
Actually the condition should use `<=` instead of strict `<`,
and check the year *in utc*
is not outside the limit, but as soon as you try
to compute the date within UTC, datetime crashes :).
However we can assume nobody will need a event in the year 9999
any time soon, or by that time if Odoo still exists,
we should have refactored this module about 3333 times and somebody
would probably have removed this limitation by oversight anyway.
opw-1850024
Diffstat (limited to 'addons/web_editor/static/src')
0 files changed, 0 insertions, 0 deletions
