tc39 / proposal-canonical-tz

TC39 Proposal (stacked on Temporal) to improve handling of changes to the IANA Time Zone Database
Other
38 stars 2 forks source link

Backwards-compatibility for Temporal (not `DTF#resolvedOptions().timeZone`) API changes in this proposal #4

Closed justingrant closed 1 year ago

justingrant commented 1 year ago

PR #1 proposes changing the canonicalization behavior of the following Temporal APIs: TimeZone#id, ZoneDateTime#timeZoneId, and toString/toJSON of both types. Currently, these getters and methods return the canonicalized Zone. With the changes in #1, we'd instead return the un-canonical Link identifier used to create the instances.

Assuming that Temporal will get to Stage 4 before this proposal does, will this change be blocked for backwards-compatibility reasons?

This issue is a honeypot to discuss that question. Note that backwards compatibility for Intl.DateTimeFormat.prototype.resolvedOptions() is out of scope for this issue. Please discuss that at #2.

My initial assumption is that changing Temporal is OK, for the following reasons:

But if other folks disagree, let's discuss!

@sffc, you noted in a recent meeting that you thought it'd be OK to change canonicalization behavior in the future, so if you wanted to add more more info about your opinion, it'd be helpful. Thanks!

justingrant commented 1 year ago

This proposal is approaching Stage 3 and I haven't heard concerns about the current approach of changing Temporal behavior, so closing this issue.