Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Timezone Name #25

Closed
vbbalaji opened this issue Apr 27, 2017 · 3 comments
Closed

Incorrect Timezone Name #25

vbbalaji opened this issue Apr 27, 2017 · 3 comments
Labels

Comments

@vbbalaji
Copy link

vbbalaji commented Apr 27, 2017

tzStr = "Central European Standard Time"
Dim abbr As TimeZoneNames.TimeZoneValues
abbr = TimeZoneNames.TZNames.GetAbbreviationsForTimeZone(tzStr, "en-US")
Dim mAb As String
mAb = abbr.Daylight

In VB.Net, Im getting "Poland Daylight Time" instead of CEST. Am I missing something? Im getting this for both Daylight and Standard. I did check Central European Standard Time is a standard timezone name.

@mattjohnsonpint
Copy link
Owner

It's not VB, I get the same thing in C#. It has to do with abbreviations not being in CLDR for all time zones, but yes - I should be able to deduce CET / CEST for this one.

@mattjohnsonpint
Copy link
Owner

FYI - This is still occurring in 3.0.0. It's not a library problem as much as it's a problem with the CLDR source data. Time zone abbreviations are known in CLDR as "short names", and presently the short names are only defined for locales where they are relevant. In this case, CET/CEST are not defined for American English, but only for British English. Indeed, if you pass "en-GB", it will work. Still, I'd like to figure out a way to overcome this in a future release.

@mattjohnsonpint
Copy link
Owner

Fixed in version 3.2.0. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants