diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-12-22 21:12:39 -0500 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-12-22 11:23:39 +0100 |
| commit | 09066fbbd5dba833dfcc2e50e406a14eacc8c10b (patch) | |
| tree | 23f292b5912ae865863a56a72a61fd80f851cc15 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | c0889a076326d74663fa6c975b86de5df15706ec (diff) | |
[FIX] calendar: fix allday onchange user tz
While choosing a start/stop datetime in a timezone hour
were the UTC value is within the next day,
e.g.
Start time Dec 22 20:00 in US/Eastner (UTC -5:00)
Therefore, start time Dec 23 01:00 in UTC
Checking the "all day" box made the start time set to
Dec 23 instead of what the user expected, Dec 22.
This is because the onchange simply took the UTC datetime
(Dec 23 01:00) from which it removed the time (Dec 23).
This revision make sure to remove the time from the
user timezoned datetime instead, so the day set
remain the same day than what was set in the datetime.
opw-702065
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
