summaryrefslogtreecommitdiff
path: root/addons/web/controllers
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2015-09-03 11:13:16 +0200
committerGoffin Simon <sig@odoo.com>2015-09-04 10:01:20 +0200
commit64e1c28e358ec06a7683249fd7fae1ba631c1933 (patch)
tree62e1c8c77f786418f82ad61327856dddbce3add8 /addons/web/controllers
parenta69af9c908da34786f7b8267b79665d9540a033f (diff)
[FIX] resource: get_working_intervals_of_day
To compute start and end date of a working interval this function replaced hour in datetime object without taking into account the time zone. The start and end date taking respectively from calendar_working_day.hour_from and calendar_working_day.hour_to are in the time zone of the user and the datetime object are compared in UTC to avoid schedule's gap. This is why the start and end must be converted in UTC after being replaced by these hours. The tz_info must be removed from dates because it's forbidden to compare naive and aware dates. opw:648349
Diffstat (limited to 'addons/web/controllers')
0 files changed, 0 insertions, 0 deletions