Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[Mailer][Postmark][Webhook] Accept different date formats#53829
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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.
Thanks for digging this.
Can you please as some test cases to cover this?
Postmark webhooks sometimes use "plain" ISO 6801 format, sometimesincluding 7 digits microseconds. As the PHP parameter only allows for 6digits neither would parse without fallbacks.Fixessymfony#53788
aa9e308
to8af3d02
Compare@nicolas-grekas I replaced all the custom formats in the tests with PHP's "official" ISO 8601 format. I guess it's supposed to be compatible with the standard and if not, Postmark is sending broken webhooks anyway. Is that OK? |
Thank you@aleho. |
Postmark webhooks sometimes use "plain" ISO 6801 format, sometimes including 7 digits microseconds.
We're currently seeing
2024-02-07T09:41:16.7048881Z
for example.As the PHP parameter only allows for 6 digits neither would parse without fallbacks.