Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 closes #122748 X-original-commit: 63688d3 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Signed-off-by: Lefebvre Thomas (thle) <thle@odoo.com>
- Loading branch information
Showing
2 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters