diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2017-03-20 17:11:11 +0100 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2017-03-20 17:54:03 +0100 |
| commit | 9dbd6d21e123ede6973cd55a2255f1f835d5651a (patch) | |
| tree | 6d5082b3613692973bc4ac515300db668e2c28fe /addons/web_editor/static/src | |
| parent | 177a25ff107b28faf5005b2d71da7f5335e3fd00 (diff) | |
[FIX] web_calendar: timezone on event display regression
In fb05d884 event that were not displayed for arabic were fixed but
there could be an error when displaying timezone caused by this change.
As said in https://fullcalendar.io/docs1/event_data/ignoreTimezone/ the
ignoreTimezone parameter is set to `true` by default in FullCalendar 1
(this is not the case in current FullCalendar).
So there is two way to solves this time zone issue:
- keep fb05d884 and have the parameter ignoreTimezone set to `false`
- use momentjs `.toString()` to get a javascript english date string
which will thereafter be parsed by javascript `new Date()`.
This commit use the second way since it is nearer what was originaly and
hopefully safer.
opw-705752
momentjs doc on toString: http://momentjs.com/docs/#/displaying/as-string/
Diffstat (limited to 'addons/web_editor/static/src')
0 files changed, 0 insertions, 0 deletions
