houseabsolute / DateTime-TimeZone

Time zone object base class and factory
https://metacpan.org/release/DateTime-TimeZone/
Other
9 stars 25 forks source link

'uk' is not a valid alpha-2 country code #39

Closed ggl closed 4 years ago

ggl commented 4 years ago

DateTime::TimeZone->countries return 'uk' among the countries.

Locale::Codes->code2name returns the following warning when attempting to convert 'uk' to a country name:

ERROR: _code: code not in codeset: uk [alpha-2]

autarch commented 4 years ago

Someone asked for uk to be added as an alias for gb many years ago, and I can't remember why. I don't want to remove it now, since that would break backwards incompatibility. I added something to the docs about this.