GetAbbreviation() function not working

Topics: Developer Forum, User Forum
Aug 19, 2007 at 7:51 PM
Edited Aug 19, 2007 at 7:51 PM
I was attempting to return the time zone abbreviation for the "America/Phoenix" time zone in VB.NET using the following code:

Dim abbrev as String
abbrev = PublicDomain.TzTimeZone.GetTimeZone("America/Phoenix").GetAbbreviation

However this code will return an abbreviation of "America/Phoenix" instead of "MST" as expected. I also noticed that this problem occurrs for the following time zone olson time zones: America/Anguilla, America/Aruba, America/Regina, America/Swift_Current, and Pacific/Honolulu. I was wondering if anyone has any suggestion as to how to resolve this issue.
Coordinator
Aug 19, 2007 at 9:08 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Aug 19, 2007 at 9:09 PM
Hey bulldog98, I have opened up a work item for this. I will look into it:

http://www.codeplex.com/publicdomain/WorkItem/View.aspx?WorkItemId=12315

Thanks
Coordinator
Aug 19, 2007 at 9:29 PM
Edited Aug 19, 2007 at 9:30 PM
Hey bulldog98,

I've fixed this issue in the latest release 0.2.15.0:

http://www.codeplex.com/publicdomain/Release/ProjectReleases.aspx?ReleaseId=6518

I tried all of the ones you noted and they now return the right abbreviations. Here are my results. Let me know if you find any other issues

America/Phoenix=MST
America/Anguilla=AST
America/Aruba=AST
America/Regina=CST
America/Swift_Current=CST
Pacific/Honolulu=HST

Thanks!
Aug 20, 2007 at 2:18 PM
Thanks for the fix it's working fine now.