The XML is providing the local value, which is 2012-11-16T05:00:00Z. It sounds like the deserialization is then converting that into a DateTime
in UTC... check the Kind
property of the DateTime
you've got... if it's Utc
then it all makes sense, and you're getting the correct instant in time represented in the XML.
It's not clear what you're expecting, or what's posting the data, or what value you really need from it. If you can change the deserialization code to use DateTimeOffset
instead of DateTime
, that would preserve both pieces of information.