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


schizoidboy wrote Sep 8, 2007 at 3:32 AM

This is a bug, thank you! Sorry it took me so long to come around to this. I will be fixing this in release

schizoidboy wrote Sep 8, 2007 at 11:50 PM