odoo/odoo#121171

Created by Thomas Lefebvre (thle)
label
odoo-dev:16.0-opw-3302925-time_off_working_times_issue-thle
head
aaa6239bd366dac157f3aae2a1d149f373389632
target
16.0
merged
1 year ago by Yannick Tivisse (yti)
forward-ports

[FIX] hr_holidays: correct the timezone for Public Time Off

When we create a public time off,
we save the start date and the end date in utc.
Unfortunately, to calculate the utc, we don't use
the calendar timezone linked to these public time off.

Issue:
For example, with the "timesheet_grid" module,
the timesheets created for these time offs
will not be correct for employees who have a calendar in a different timezone than the user who creates the public time off.

Solution:
Convert the dates received in the calendar timezone.

opw-3302925