So lets say a user is running my web app from his browser on a different time zone than the application server. I serialize a date on the client-side by using JavaScript\'s
There are some issues
.getTime(), .valueOf() etc because they use ms since epoch according to UTC.You can counter this by sending a timestamp from your server and then comparing it to timestamp generated from the client, to get the skewness offset. You'd then apply this skewness offset to all new Date.getTime()s you generate on the client. Though this won't work if the client changes their system time as they are using your page.