diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-11-28 11:47:16 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-11-28 11:47:16 +0100 |
| commit | b194e225f11b1f23f63b58ff767efa6df95caf8a (patch) | |
| tree | 55956d2627f39de55f4252115c03e7d4524d93b9 /addons/web/static/src | |
| parent | d2030f2d0683b38025f31123a160c283fb5256e5 (diff) | |
[FIX] py_date should return a local date, not a UTC date
bzr revid: xmo@openerp.com-20121128104716-w7zqiljfazj597pg
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/corelib.js | 2 |
1 files changed, 1 insertions, 1 deletions
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'); |
