User-315082118 posted
Hi,
I’m using ASP.NET AJAX to call a WebService in the server from the client and get a record, the record contains dates, these dates are stored as their UTC values and when I get them to send them to the client are converted to the user’s local time using
her time zone, this works great in Windows 7 and Windows Server 2008, but in Windows Azure I’m getting the value of the date minus 6 hours (the same offset of the user’s time zone).
While debugging I can see that the date is obtained from SQL Azure correctly, and again it’s converted to the user’s local time correctly, it looks like the problem is generated when the record is serialized by ASP.NET AJAX into JSON to be send to the client,
at this point it looks like it gets converted to the user’s browser local time, losing another 6 hours.
¿Has anybody seen something like this? ¿Is there a solution for this?
thanks.