Skip to content

Conversation

@catamorphism
Copy link
Contributor

@catamorphism catamorphism commented Dec 4, 2025

This string shouldn't parse (+00:00:00 or +000000 would be valid).

Add tests for date/time strings containing this offset for Instant, PlainDateTime, PlainTime, and ZonedDateTime. Also add a test for ZonedDateTime taking this offset in a property bag.

This string shouldn't parse (+00:00:00 or +000000 would be valid).

Add tests for date/time strings containing this offset for
Instant, PlainDateTime, PlainTime, and ZonedDateTime. Also add a
test for ZonedDateTime taking this offset in a property bag.
Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but to cover all points where these strings might be parsed, I think we need tests for the relativeTo parameter in Temporal.Duration.compare, Temporal.Duration.prototype.round, and Temporal.Duration.prototype.total. Both for ZonedDateTime strings and ZonedDateTime property bags with an offset property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants