diff options
| author | Joren Van Onder <jov@odoo.com> | 2020-01-09 01:04:54 +0000 |
|---|---|---|
| committer | Joren Van Onder <jov@odoo.com> | 2020-02-20 01:14:02 +0000 |
| commit | 2e490f1c95946014222ccc1e9fc2910c301a6fc8 (patch) | |
| tree | 026b176c8bf8de3ec60781968f35795cf8f599af /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 96eb99f0f22818880c2fde575566aa12f66d5160 (diff) | |
[FIX] hr_holidays: default date should be local to the user's timezone
Before this the following happened:
- Be in PST (UTC -8)
- Create a 1 day leave starting Jan 1 (clicking in the calendar view)
The default request_date_from is Jan 1, default request_date_to is Jan
2.
It happens because the dates are extracted from the UTC time, which in
this case are different (15:00 AM Jan 1 - 3:00 AM Jan 2).
To solve it set dates local to the user.
opw-2169863
X-original-commit: 740f39d31f2480ee7ae9cd3472b733087f1cf280
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
