Hi,

> My client is a large global company which is in ever region. So when user
> in India saves data on server in Virginia, it shows him as saved 10.5 he's
> later than he specified. How to fix it?

On projects I've worked on we've set the server time to GMT/UTC this make 
calculations like that much easier. Saving all date/time as UTC in the server 
and displaying in local time then requires no time zone conversion calculations.

> Also is conversion to UTC done as date.getUTCDate() ?
No that only returns the UTC day of the month, date.UTC() is the method you 
want, date.toLocalString() and date.toUTCString() are also useful methods.

Thanks,
Justin

Reply via email to