[FIX] web: search_filters: avoid to apply UTC offset for date fields

Due to a previous commit (@d2e1a1de), if a date was selected in
search filter, the time was converted to UTC to the server.
For negative offset, the search was then executed for the day before.

Now, we avoid to convert the searched date to UTC.
We only need to convert datetime fields.
This commit is contained in:
Adrien Dieudonne
2017-12-01 15:36:33 +01:00
parent 5d7ad2b16c
commit dbb9338a95
@@ -248,6 +248,10 @@ ExtendedSearchProposition.Date = ExtendedSearchProposition.DateTime.extend({
attributes: {
type: 'date'
},
get_value: function (index) {
// retrieve the datepicker value
return this["datewidget_" + (index || 0)].getValue();
},
_get_widget_class: function () {
return datepicker.DateWidget;
},