From b194e225f11b1f23f63b58ff767efa6df95caf8a Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 28 Nov 2012 11:47:16 +0100 Subject: [PATCH] [FIX] py_date should return a local date, not a UTC date bzr revid: xmo@openerp.com-20121128104716-w7zqiljfazj597pg --- addons/web/static/src/js/corelib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/corelib.js b/addons/web/static/src/js/corelib.js index 6d7e3c39054..0a6f4ed3a29 100644 --- a/addons/web/static/src/js/corelib.js +++ b/addons/web/static/src/js/corelib.js @@ -990,7 +990,7 @@ instance.web.JsonRPC = instance.web.Class.extend(instance.web.PropertiesMixin, { }; date.today = new py.def(function () { var d = new Date(); - return new date(d.getUTCFullYear(), d.getUTCMonth() + 1, d.getUTCDate()); + return new date(d.getFullYear(), d.getMonth() + 1, d.getDate()); }); datetime.time = new py.type(function time() { throw new Error('datetime.time not implemented');