Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-27231

Analytics should take the time and timezone into consideration

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.10, 11.1-SNAPSHOT
    • Fix Version/s: 11.x
    • Component/s: Web UI

      Description

      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>
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: