Skip to content

[pull] master from moment:master - #104

Merged
pull[bot] merged 3 commits into
LoganRupe:masterfrom
moment:master
Aug 5, 2026
Merged

[pull] master from moment:master#104
pull[bot] merged 3 commits into
LoganRupe:masterfrom
moment:master

Conversation

@pull

@pull pull Bot commented Aug 5, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

simonkundrik and others added 3 commits August 5, 2026 21:07
… table (#1789)

The parsing token table listed the format tokens (E, M) under the
Standalone token column and the standalone tokens (c, L) under the
Format token column -- the reverse of docs/formatting.md and of Luxon's
API, where c/L are standalone and E/M are format. Swap the two columns
for all affected weekday and month rows so the parsing table is correct
and consistent with the formatting docs.

Closes #1777
… offset (#1781)

FixedOffsetZone#isValid always returned true, even when the constructor
was given an input it does not support (e.g. new FixedOffsetZone('CDT')).
Such a zone produced a NaN offset and a 'UTC-NaN' name, yet reported
itself as valid, so DateTimes using it failed downstream with a confusing
'invalid input' reason instead of being cleanly invalid.

isValid now reflects whether the offset is a number, so unsupported
inputs produce an invalid zone (and, in turn, an 'unsupported zone'
DateTime), matching the behaviour of IANAZone.

Closes #1068
The rfc2822 regex already matches UT in its zone alternation
(UT|GMT|[ECMP][SD]T), but UT was missing from the obsOffsets lookup
table, so obsOffsets["UT"] was undefined and the parse failed with an
"unsupported zone" error.

RFC 2822 / 5322 section 4.3 lists UT alongside GMT as an obsolete zone
meaning +0000, so it should parse the same as GMT. Add UT: 0 to the table.
@pull pull Bot locked and limited conversation to collaborators Aug 5, 2026
@pull pull Bot added the ⤵️ pull label Aug 5, 2026
@pull
pull Bot merged commit d249e0e into LoganRupe:master Aug 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants