summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets/debug_manager.js
diff options
context:
space:
mode:
authorjem-odoo <jem@openerp.com>2018-03-14 10:56:28 +0100
committerNicolas Lempereur <nle@odoo.com>2018-04-03 17:54:12 +0200
commit35a4263f0a84cd11e77fa82aa3249baaa68fba96 (patch)
tree3f4320b346c13b9209218e7fe3f87869422cbfd9 /addons/web/static/src/js/widgets/debug_manager.js
parentce162fae3e078705c576ee75a1994f7d89b60180 (diff)
[FIX] calendar: comparing timezoned datetimes
We transform the rrule stored as a string into a real rrule object using 'rrule.rrulestr'. The 'UNTIL' parameter of the rrule might not be timezoned. So the '_until' property of the rrule object will be a naive datetime. Later in the '_get_recurrent_date_by_event', we add the recurring date in the '_exdate' property, but those dates are timezoned. When iterating on the rrule set (its a set since forceset=True), the until date and exdate are compared, but it cause crashes as we can not compare offset-naive and offset-aware datetimes. This commit make the rrule use only naive or aware datetimes for its 'until' and '_exdate' properties depending on the 'until' property of calendar.event rrule field. opw-1825679 closes #24010
Diffstat (limited to 'addons/web/static/src/js/widgets/debug_manager.js')
0 files changed, 0 insertions, 0 deletions