-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 formatdate not allowing strings #37301
Fix formatdate not allowing strings #37301
Conversation
Pinging @elastic/kibana-canvas |
💔 Build Failed |
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.
Simple enough change 👍 . Can you update the help text for the function to reflect that date strings can be formatted as well? It currently says Output a ms since epoch number as a formatted string
.
@ryankeairns Could you approve the new |
💚 Build Succeeded |
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.
LGTM, nice fix
* Fix formatdate not allowing strings * Addressing Feedback
* Fix formatdate not allowing strings * Addressing Feedback
* Fix formatdate not allowing strings * Addressing Feedback
Summary
@alexfrancoeur noticed that
formatdate
was claiming a GMT date string wasn't a valid date. It turns out, whileformatdate
is usingmoment
under the hood, the function spec wasn't allowing a string as an input.This PR fixes that issue.
Before
After