mattjohnsonpint / TimeZoneNames

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

Method Not Found Exception 'TimeZoneConverter.TZConvert.WindowsToIana(string, string)' after Updating TimeZoneConverter to 6.0.0 and calling TZNames.GetAbbreviationsForTimeZone() #83

Closed arex388 closed 1 year ago

arex388 commented 1 year ago

I was updating my library to TimeZoneConverter 6.0.0, but when calling into TZNames.GetAbbreviationsForTimeZone() after the update, a method not found exception is thrown:

Method not found: 'System.String TimeZoneConverter.TZConvert.WindowsToIana(System.String, System.String)'.

at TimeZoneNames.TZNames.GetNames(String timeZoneId, String languageKey, Boolean abbreviations) at TimeZoneNames.TZNames.GetAbbreviationsForTimeZone(String timeZoneId, String languageCode) at Arex388.TimeZones.TimeZones.<>cDisplayClass0_0.b_1(DateTimeZone ) at System.Linq.Utilities.<>cDisplayClass2_03.<CombineSelectors>b__0(TSource x) at System.Linq.Enumerable.SelectIListIterator2.MoveNext() at LINQPad.Extensions.Dump[T](T o, String description, Nullable1 depth, Nullable1 collapseTo, Boolean toDataGrid, String exclude, String include, Nullable1 alpha, Boolean noTotals, Nullable1 repeatHeadersAt, Boolean includePrivate) at LINQPad.Extensions.Dump[T](T o) at UserQuery.Main(), line 2

I'm assuming TimeZoneNames needs to be updated with the latest TimeZoneConverter?

mattjohnsonpint commented 1 year ago

Thanks. I will take a look asap.

mattjohnsonpint commented 1 year ago

Hi. I've fixed the problem in TimeZoneConverter and republished that as 6.0.1. If you update, it should work with TimeZoneNames fine now.

I do have other updates coming for TimeZoneNames at some point, but this seemed a faster way to fix the issue.

Thanks.

arex388 commented 1 year ago

Thank you!