This project is read-only.

GetAbbreviation() function not working

Topics: Developer Forum, User Forum
Aug 19, 2007 at 8:51 PM
Edited Aug 19, 2007 at 8: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.
Aug 19, 2007 at 10:08 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Aug 19, 2007 at 10:09 PM
Hey bulldog98, I have opened up a work item for this. I will look into it:

Aug 19, 2007 at 10:29 PM
Edited Aug 19, 2007 at 10:30 PM
Hey bulldog98,

I've fixed this issue in the latest release

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


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