1

Resolved

Problems getting correct time zone abbreviation

description

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

comments

schizoidboy wrote Sep 8, 2007 at 4: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 0.2.16.0...

schizoidboy wrote Sep 9, 2007 at 12:50 AM