odoo/odoo#121171
Created by Thomas Lefebvre (thle)
Merged
at 63688d31c036a7d1421444134169681924f8a12a
- 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
- odoo/odoo#122755 targeting master
- odoo/odoo#122748 targeting saas-16.3
- odoo/odoo#122737 targeting saas-16.2
- odoo/odoo#122717 targeting saas-16.1
[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