Patch for DateTime serialization

G

Guest

when serializing a datetime value and then subsequently desreializing it it
gets modified if the receiving computer is in a different timezone than the
sender. I know how to use the SpecifyKind to set the type to
utc/local/unspecified but the problem is that we serialize a lot of complex
classes that contain DateTime vars at some deep down level.

Is there a patch the .net CLR or some other method available through a
registry entry or something that I can set the default behaviour so that any
datetime object that is created is done with a Kind of utc?

Long term this needs to be fixed. We shouldn't have transport layer stuff
modifying data created at the application layer.
 
G

GlennDoten

Brian said:
when serializing a datetime value and then subsequently desreializing it it
gets modified if the receiving computer is in a different timezone than the
sender.

What is different in the value after it is deserialized?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top