Open linusswanbergpolestar opened 2 years ago
Hmmm.. I'll have to investigate further. Thanks.
Indeed, this is still happening on 6.0.0.
var results = TimeZoneNames.TZNames.GetNamesForTimeZone("America/Los_Angeles", "nb-NO");
Console.WriteLine(results.Generic);
Unhandled exception. System.Exception: Could not find a language with code nb-NO
at TimeZoneNames.TZNames.GetLanguageKey(String languageCode, Boolean forDisplayNames)
at TimeZoneNames.TZNames.GetNamesForTimeZone(String timeZoneId, String languageCode)
at Program.<Main>$(String[] args) in Program.cs:line 1
I believe this issue would be fixed by my PR: https://github.com/mattjohnsonpint/TimeZoneNames/pull/104
Happens for versions 5.0.0 and 5.0.1
Works fine for version 4.2.0