Skip to content
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

Handle CLDR fallback rules properly #12

Open
mattjohnsonpint opened this issue Nov 13, 2015 · 0 comments
Open

Handle CLDR fallback rules properly #12

mattjohnsonpint opened this issue Nov 13, 2015 · 0 comments

Comments

@mattjohnsonpint
Copy link
Owner

CLDR defines the rules for time zone names here:
http://www.unicode.org/reports/tr35/tr35-dates.html#Using_Time_Zone_Names

We are not currently fully compliant. Specifically, consider failing unit test:

[Fact]
public void Can_Get_Names_For_CA_Pacific_From_MX()
{
    var names = TimeZoneNames.GetNamesForTimeZone("America/Vancouver", "en-MX");

    Assert.Equal("Pacific Time (Canada)", names.Generic);
    Assert.Equal("Pacific Standard Time (Canada)", names.Standard);
    Assert.Equal("Pacific Daylight Time (Canada)", names.Daylight);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant