-
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
[EuiDatePicker] Fix utcOffset
prop not affecting the underlying react-datepicker
lib
#3461
Comments
FWIW, |
utcOffset
prop in EuiDatePicker
utcOffset
prop
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment. |
+1 - is there another known way to display times in a different TZ from the user's browser TZ? |
Currently you'd need to mimic the code snippet above and use |
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment. |
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment. |
❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error. |
BUMP. I'm very interested in being able to apply utcOffset to all dates in the EuiDatePicker/EuiSuperDatePicker as all of the data in my application uses UTC. |
bump x2, how do we display time in anything other than the local timezone. |
Thanks all for the bumps - going to go ahead and re-open this and mark it as a bug. |
utcOffset
proputcOffset
prop not affecting the underlying react-datepicker
lib
👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year. |
bump x 4 |
After reviewing #3436, it doesn't appear that the
utcOffset
prop inEuiDatePicker
does what it says/what we think.In the docs, the actual UTC offset is done on
selected
value itself:eui/src-docs/src/views/date_picker/utc.js
Lines 43 to 45 in 12074a5
And passing just the offset value via the
utcOffset
prop has no effect.As such, simply passing through
utcOffset
toEuiSuperDatePicker
also has no effect.There are 0 usages in Kibana so it's hard to track correct usage and output.
Originally posted by @thompsongl in #3433 (comment)
The text was updated successfully, but these errors were encountered: