DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 10 Aug 2007 06:54:00 -0700,    posted on: microsoft.public.dotnet.framework        back       

Thread Index
  1    Brian
          2    GlennDoten


Patch for DateTime serialization   
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.
Date:Fri, 10 Aug 2007 06:54:00 -0700   Author:  

Re: Patch for DateTime serialization   
Brian wrote:

> 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?

-- 
-glenn-
Date:Mon, 13 Aug 2007 17:58:17 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us