I have to support opening hours in offices around the world. I'm trying to figure it out how to solve problem with Daylight Saving Time. I have checked and TimeZoneInfo.ConvertTimeFromUtc()
looks ok. I use it like : TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, TimeZoneInfo.FindSystemTimeZoneById("Central European Standard Time"))
. And it seems that I do not have to wonder about the DST, because that method returns correct time. But I wonder if it is that simple or there is trick in it or there is better solution?
p.s. I use .Net 4.0