mattjohnsonpint / TimeZoneNames

Provides a complete source of localized time zone names and abbreviations.
MIT License
199 stars 32 forks source link

GetTimeZonesForCountry throws exception with languageCode "en-US" #2

Closed DorianGreen closed 9 years ago

DorianGreen commented 9 years ago

langKey should be used instead of languageCode:

return zones.Select(x => new { Id = x, Names = GetNames(x, languageCode, false) }) .ToDictionary(x => x.Id, x => x.Names);

mattjohnsonpint commented 9 years ago

Yep! Looks like I missed unit test for that one. Will fix shortly. Thanks!

mattjohnsonpint commented 9 years ago

This is fixed in release 1.2.0. Thanks!