-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EuiSuperDatePicker UTC offset #3433
Comments
The underlying component within EuiSuperDatePicker are our regular EuiDatePickers so it stands to reason that we should be able to pass down the |
Working on this one 🔧 |
After reviewing #3436, it doesn't appear that the In the docs, the actual UTC offset is done on eui/src-docs/src/views/date_picker/utc.js Lines 43 to 45 in 12074a5
And passing just the offset value via the As such, simply passing through There are 0 usages in Kibana so it's hard to track correct usage and output. |
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
theEuiSuperDatePicker
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 toMay 5, 2020 @ 00:00:00.000
.While looking through this code base I noticed that
EuiDatePicker
has autcOffset
propeui/src/components/date_picker/date_picker.tsx
Line 161 in 6e6b556
Is there a way that we can pass something similar to
EuiSuperDatePicker
so that we don't have to do these conversions?-Thanks
The text was updated successfully, but these errors were encountered: