Skip to content

EuiSuperDatePicker UTC offset #3433

@steve-offutt

Description

@steve-offutt

My team and I are using this library to mainly do review of logs. We have had a lot of success using your other components contained in this library. It's been great! However, there is one issue that I need help with. This application that we are using uses the EuiSuperDatePicker to filter and search through logs. The user is expected to perform the search in UTC as we get logs from all different timezones and the underlying logs are all standardized to UTC. While using this component we observe that when we select a datetime, May 5, 2020 @ 00:00:00.000 the EuiSuperDatePicker is converting that datetime to UTC (May 5, 2020 @ 05:00:00.000 suppose I live in CDT). What that means for us in our use case is that we must convert that back to May 5, 2020 @ 00:00:00.000.

While looking through this code base I noticed that EuiDatePicker has a utcOffset prop

Is there a way that we can pass something similar to EuiSuperDatePicker so that we don't have to do these conversions?

-Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions