There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Problems getting correct time zone abbreviation
I am writing code in VB.NET and I am having problems getting the correct time zone abbreviation for dates that are not during daylight savings time. For instance I run the following code:
Dim startDate As Date = "1/1/2008 12:00:00"
Dim abbrev As String
abbrev = PublicDomain.TzTimeZone.GetTimeZone("America/Denver").GetAbbreviation(startDate)
This code should set the abbrev variable to MST because 1/1/2008 is not during daylight saving time. However a value of MDT is returned. I would appreciate any assistance in getting this issue resolved. Thanks