WCF REST JSON API: DateTime serialization in DataContractJsonSerializer?

I ran into this exact same issue. Was developing everything local PST and pushed to a server EST which then obviously caused some fun issues. I was never able to find a good explanation why this is, but it is related to the DateTime.Kind.By default DateTimeKind on a DateTime is Unspecified, which the Serializer converts to "Local", thus adding the timezone offset.

I ran into this exact same issue. Was developing everything local PST and pushed to a server EST which then obviously caused some fun issues. I was never able to find a good explanation why this is, but it is related to the DateTime.Kind.By default DateTimeKind on a DateTime is Unspecified, which the Serializer converts to "Local", thus adding the timezone offset.

The way I ended up working around this is by setting the DateTime. Kind to UTC: msdn.microsoft.com/en-us/library/shx7s92... Here's another forum answer to the question: http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/0a6c84a3-5348-4ea0-b33f-eb411a2e1c97 If the DateTime. Kind is Utc the serializer excludes the TimeZone offset and you can track all that yourself and make whatever assumptions you need to on both the server and client about the TimeZone of your dates.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions