summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/core
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2017-04-18 11:42:28 +0200
committerChristophe Matthieu <chm@odoo.com>2017-04-19 10:14:02 +0200
commitff86e5b9862deab9a9772774e941140966a9ab7c (patch)
treeca8451808841ce9832500b284aa2fc100bbc322b /addons/web/static/src/js/core
parent7ca29909e8a8242972dfae2ef2f45116a0d871b2 (diff)
[FIX] web: prevent crash when the user doesn't have timezone
Diffstat (limited to 'addons/web/static/src/js/core')
-rw-r--r--addons/web/static/src/js/core/session.js2
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();
}