-
Notifications
You must be signed in to change notification settings - Fork 22
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
fix(datetimepicker): invalid value passed to formatTime [MA-2131] #1881
Conversation
✅ Deploy Preview for kongponents ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for kongponents-sandbox ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
94d4d88
to
108e04a
Compare
@adamdehaven cleaned up the markdown file, no more mention of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ based on Analytic team's review
# [9.0.0-alpha.70](v9.0.0-alpha.69...v9.0.0-alpha.70) (2023-12-06) ### Bug Fixes * **datetimepicker:** invalid value passed to formatTime [MA-2131] ([#1881](#1881)) ([6dde6a5](6dde6a5))
🎉 This PR is included in version 9.0.0-alpha.70 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
https://konghq.atlassian.net/browse/MA-2131
Error was occurring whenever the consuming app was passing in an invalid time range such as
This was not an issue for relative time frames, only the custom calendar range. We now default that time range's
start
andend
values to today's date, and we avoid passing a null value toformatDisplayDate()
, which callsdate-fns-tz
'sformatTime
function under the hoodChanges, hiding whitespace (easier to review):
https://github.com/Kong/kongponents/pull/1881/files?w=1
Sandbox preview:
https://deploy-preview-1881--kongponents.netlify.app/components/datetime-picker.html
PR Checklist