mattjohnsonpint / TimeZoneNames

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

TZNames.GetCountryNames() returns territories without time zones and different results per locale #53

Open RobJohnston opened 5 years ago

RobJohnston commented 5 years ago

Calling TZNames.GetCountryNames() with the English locale gets data from https://www.unicode.org/repos/cldr/tags/release-34/common/main/en.xml, which includes 4 territories without time zones:

Calling it with the French locale gets data from https://www.unicode.org/repos/cldr/tags/release-34/common/main/fr.xml, which does not include "XA" nor "XB".

Expected results:

  1. different locales return the same number of territories
  2. Territories without time zones are not returned