Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Webhook][Postmark][RemoteEvent] Date validation fails for sample payloads #53788

Closed
@aleho

Description

@aleho

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

  1. don't validate dates or
  2. allow fractions of seconds to be passed.

Additional Context

if (!$date = \DateTimeImmutable::createFromFormat('Y-m-d\TH:i:sT',$payloadDate)) {

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp