Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Closed
Description
Symfony version(s) affected
6.3
Description
The Postmark docs state "datetimes within webhook data will be in ISO 8601 format". They then proceed to use dates in samples containing fractions (like2019-11-05T16:33:54.9070259Z
).According to Wikipedia it's fine to use fractions of seconds.
ThePostmarkPayloadConverter
nevertheless only allows times to be specified without fractions. This causes all samples from their docs to fail when testing payloads locally.
How to reproduce
Usesample payload from Postmark docs to test a webhook locally.
Possible Solution
Either
- don't validate dates or
- allow fractions of seconds to be passed.
Additional Context
symfony/src/Symfony/Component/Mailer/Bridge/Postmark/RemoteEvent/PostmarkPayloadConverter.php
Line 50 in204c741
if (!$date = \DateTimeImmutable::createFromFormat('Y-m-d\TH:i:sT',$payloadDate)) { |