Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / August 2007

Tip: Looking for answers? Try searching our database.

Patch for DateTime serialization

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brian - 10 Aug 2007 14:54 GMT
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.
GlennDoten - 13 Aug 2007 22:58 GMT
> 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?

Signature

-glenn-


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.