diff options
| author | Christophe Matthieu <chm@odoo.com> | 2017-04-18 11:42:28 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2017-04-19 10:14:02 +0200 |
| commit | ff86e5b9862deab9a9772774e941140966a9ab7c (patch) | |
| tree | ca8451808841ce9832500b284aa2fc100bbc322b /addons/web/static/src/js | |
| parent | 7ca29909e8a8242972dfae2ef2f45116a0d871b2 (diff) | |
[FIX] web: prevent crash when the user doesn't have timezone
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/core/session.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/core/session.js b/addons/web/static/src/js/core/session.js index 3a098bbe78c..c98ff7fbe9a 100644 --- a/addons/web/static/src/js/core/session.js +++ b/addons/web/static/src/js/core/session.js @@ -285,7 +285,7 @@ var Session = core.Class.extend(mixins.EventDispatcherMixin, { var result = _.extend({}, window.odoo.session_info); delete result.session_id; _.extend(this, result); - if (!this.tzOffset) { + if (this.tzOffset === false) { // send by server to have the user timezone and not the browser timezone this.tzOffset = -new Date().getTimezoneOffset(); } |
