PC Review


Reply
Thread Tools Rate Thread

atlas JavaScriptObjectSerializer serializing DateTime properties to wrong time zone

 
 
sonic
Guest
Posts: n/a
 
      24th Aug 2006
when i serialize my c# object to javascript, it creates a
Date(1153958400000); in place where my c# DateTime property was, and
that date goes back 4 hours to eastern standard time. than the browser
does another -4


MyUser u = GetUser();
string s =
Microsoft.Web.Script.Serialization.JavaScriptObjectSerializer.Serialize(
u );

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DateTime.Now returns incorrect time after time zone change RFlaugher Microsoft Dot NET Compact Framework 8 12th Apr 2010 05:14 PM
Time zone changes to wrong Time zone every couple of days diesel Windows XP Help 4 23rd Mar 2009 02:21 AM
DateTime Class shows wrong time when Time Zone is changed Dave Hall Microsoft Dot NET Compact Framework 6 14th Jul 2004 06:05 PM
How do I convert a DateTime to another time zone? =?Utf-8?B?TGFycnkgRkFB?= Microsoft C# .NET 4 29th Mar 2004 12:31 PM
How do I convert a DateTime to another time zone? =?Utf-8?B?TGFycnkgRkFB?= Microsoft Dot NET 4 29th Mar 2004 12:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:30 PM.