atlas JavaScriptObjectSerializer serializing DateTime properties to wrong time zone

S

sonic

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 );
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top