mattjohnsonpint / TimeZoneNames

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

GetNamesForTimeZone for Belgium #16

Closed aakrotov closed 8 years ago

aakrotov commented 8 years ago

I found a case where GetNamesForTimeZone throws a NullReference exception.

GetNamesForTimeZone("UTC+12", "de-DE") returns a set of values as expected and it works with en-US

If you replace Culture with "nl-BE", the above method throws a NullReference exception.

Probably not the only case when this happens, the only one I know of so far, there may be more. If there is no value, empty string is much better than NullRef which I have to catch.

mattjohnsonpint commented 8 years ago

This is fixed in 2.1.0. Thanks for reporting!