-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define behaviour when no time zone is used within a region #47
Comments
Currently it is defined as "of those in common use in region." |
The current specification requires that the array returned from For example here's what V8 returns for the specific cases mentioned above: d8> new Intl.Locale("und-ZX").timeZones
[]
d8> new Intl.Locale("und-ZZ").timeZones
[]
d8> new Intl.Locale("und-019").timeZones
[] This is clearly not compliant to the current specification, because the returned array has zero elements, but at least one element is required to be returned. |
hum... make sense |
"0 or more" reads a bit strange to me when we want to express the list can have any number of elements. What about something along the lines of:
This way we explicitly say under which conditions the list can be empty. |
How about GMT? |
TimeZonesOfLocale ( loc )
TimeZonesOfLocale("und-ZX")
, where "ZX" isn't a registered region subtag, or what is returned forTimeZonesOfLocale("und-ZZ")
, where "ZZ" is the unknown region placeholder, also what should be returned for larger regions likeTimeZonesOfLocale("und-019")
, where "019" is the region subtag for the Americas?The text was updated successfully, but these errors were encountered: