Skip to content

Accept the zulu designator when decoding an instant. - #15

Merged
gustavofreze merged 1 commit into
mainfrom
fix/accept-zulu-designator-on-instant-decoding
Jul 27, 2026
Merged

Accept the zulu designator when decoding an instant.#15
gustavofreze merged 1 commit into
mainfrom
fix/accept-zulu-designator-on-instant-decoding

Conversation

@gustavofreze

Copy link
Copy Markdown
Member

ISO 8601 allows Z as an alias for +00:00, but the guard patterns only matched a numeric offset, so every UTC timestamp written with Z was rejected. The format specifier P already parses Z natively, so widening the patterns is enough and no normalization step is needed.

Please follow the contributing guidelines.

Summary

What this pull request does.

Related issue

Closes #...

Checklist

  • Tests added or updated.
  • Documentation updated when applicable.
  • composer review passes.
  • composer tests passes.

ISO 8601 allows Z as an alias for +00:00, but the guard patterns only
matched a numeric offset, so every UTC timestamp written with Z was
rejected. The format specifier P already parses Z natively, so widening
the patterns is enough and no normalization step is needed.
@gustavofreze
gustavofreze merged commit 53190b1 into main Jul 27, 2026
7 checks passed
@gustavofreze
gustavofreze deleted the fix/accept-zulu-designator-on-instant-decoding branch July 27, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant