diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-12-06 11:59:38 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-12-06 11:59:38 +0100 |
| commit | f96a797fe6238306ec70d3db013b8a4d348ef181 (patch) | |
| tree | 40990f6ca69840a52421c4a52f68e439ba1a5b42 /addons/web/static/lib | |
| parent | dc5755698cc41e0c5f51ab5dccee1356a0f23a3f (diff) | |
| parent | b8540eefe3b82fc4a54c8a808ce3bfa0bea8a29a (diff) | |
[MERGE] forward port branch saas-16 up to b8540eefe3b
Diffstat (limited to 'addons/web/static/lib')
| -rw-r--r-- | addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js b/addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js index 8f0724bbb00..19f261ff4fc 100644 --- a/addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js +++ b/addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js @@ -479,8 +479,12 @@ }, notifyEvent = function (e) { - if (e.type === 'dp.change' && ((e.date && e.date.isSame(e.oldDate)) || (!e.date && !e.oldDate))) { - return; + if (e.type === 'dp.change') { + // check _isUTC flag to ensure that we are not comparing apples and oranges + var bothUTC = e.date && e.oldDate && e.date._isUTC === e.oldDate._isUTC; + if ((bothUTC && e.date.isSame(e.oldDate)) || (!e.date && !e.oldDate)) { + return; + } } element.trigger(e); }, |
