|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
TimeZone.ToLocalTime changed in 2.0?We have code that used an instance of a timezone (for a timezone other than
local), and called ToLocalTime(), passing in a UTC time. In version 1.1, the return value was the time in this time zone. I have found that in 2.0, the return value is the local time for the machine. We could do that already with DateTime's ToLocalTime() method. I have found no combination of values for the new DateTime.Kind flag that gets me back to what worked in 1.1. Why was this changed? Was this a bug in 1.1 that was fixed, or is this a new bug in 2.0? Is there a way to do this with DateTime.Kind? |
|||||||||||||||||||||||