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

Should `DTF.p.resolvedOptions().timeZone` canonicalize or not? #2

Open justingrant opened 1 year ago

justingrant commented 1 year ago

This proposal recommends storing un-canonicalized Link identifiers in TimeZone and ZonedDateTime slots, and returning Link identifier strings from ZonedDateTime.p.timeZoneId, TimeZone.p.id, and toString/toJSON of both types.

But what about Intl.DateTimeFormat.p.resolvedOptions().timeZone?

Arguments for canonicalizing resolvedOptions().timeZone

Arguments against canonicalizing resolvedOptions().timeZone

Personally I don't have a strong opinion either way. I'm inclined to follow whatever TG2 folks think is the best way to go.

justingrant commented 1 year ago

We discussed this question at today's TG2 meeting. @FrankYFTang noted that he needed to investigate whether this change would cause problems with DateTimeFormat, but that this investigation (like all implementation concerns) was appropriate to do during Stage 3 and would not block Stage 3 advancement.

FrankYFTang commented 1 year ago

@FrankYFTang noted that he needed to investigate whether this change would cause problems with DateTimeFormat, but that this investigation (like all implementation concerns) was appropriate to do during Stage 3 and would not block Stage 3 advancement.

to be specific - My comments during the TG2 meeting is about the change to step 29.e in InitializeDateTimeFormat