tc39 / proposal-temporal

Provides standard objects and functions for working with dates and times.
https://tc39.es/proposal-temporal/docs/
Other
3.22k stars 148 forks source link

NudgeToZonedTime: Incorrect assertion for user-defined time zones or calendars #2888

Open anba opened 2 months ago

anba commented 2 months ago

Step 11:

  1. Assert: NormalizedTimeDurationSign(daySpan) = sign.

This assertion doesn't hold, because start, startDateTime, and endDateTime are user-controlled for user-defined time zones or calendars.

ptomato commented 2 months ago

Let's wait until it's clear whether there's agreement to remove user-defined time zones and calendars, and see if this still needs to be addressed.