Start and End data are passed without the time and timezone. In that case elasticsearch will use UTC time for filters.
Start and end date should be initialized this way:
ready: function() { this.startDate = moment().utc().subtract(1, 'month').toISOString(); this.endDate = moment().utc().toISOString(); },
and the time set on the widgets:
<nuxeo-date-picker value="{{startDate}}" label="[[i18n('label.from')]]" default-time="00:00:00"></nuxeo-date-picker> <nuxeo-date-picker value="{{endDate}}" label="[[i18n('label.to')]]" default-time="23:59:59"></nuxeo-date-picker>
- depends on
-
ELEMENTS-923 add missing timezone parameter in nuxeo-aggregate-data-behavior
- Resolved