[FIX] py_date should return a local date, not a UTC date

bzr revid: xmo@openerp.com-20121128104716-w7zqiljfazj597pg
This commit is contained in:
Xavier Morel 2012-11-28 11:47:16 +01:00
parent d2030f2d06
commit b194e225f1
1 changed files with 1 additions and 1 deletions

View File

@ -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');