.NET time-travel or the lost hour of DST
Submitted by Greg on Sun, 2010-11-28 22:51.
Keywords: .NET, professional, windows.
Every year again comes the DST change...
And every year again .NET developers get confused about a whole hour mysteriously missing from their logs. Others, in contrast, seem to experience an unwelcome déjà vu and to encounter things twice.
In this brief article I discuss how the DateTime type causes many of these problems and give a few tips on using the DateTimeOffset type to avoid most of the problems associated with DateTime in the context of DST transitions.