odoo/odoo#122748
Created by fw-bot
Merged
at 96fbd6d1762d3f02f438bae985d25a938e5ad3f9
- label
- odoo-dev:saas-16.3-16.0-opw-3302925-time_off_working_times_issue-thle-Xb1S-fw
- head
- 4902a42c7da95a53fd146c941cf3b586c580ed23
- target
- saas-16.3
- merged
- 1 year ago by Thomas Lefebvre (thle)
- forward-port of
- odoo/odoo#121171
[FW][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
Forward-Port-Of: odoo/odoo#121171