search view of 6.1 web client does not honor the fact that dates are stored in UTC timezone in the server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
All datetime fields are stored in the UTC timezone in the database .
However the browser displays the datetime converting the time from UTC to the local timezone ..
In the case of a search view the date entered in the search field has to be converted ito UTC timezone before sending it to the server for the actual search ...
The following code of addons/
openerp.
make_domain: function (name, operator, value) {
return ['&', [name, '>=', value + ' 00:00:00'],
}
});
has to be changed to something similar as the following
openerp.
make_domain: function (name, operator, value) {
var time_low = Date.parseExact
var time_high = Date.parseExact
var value_low = openerp.
var value_high = openerp.
return ['&', [name, '>=', value_low],
}
});
affects: | openobject-client → openerp-web |