My web application is deployed in the US I will get US time regardless of the client's country. But if the client is in India, he should get Indian time, either using the time zone or locale or user preference. What should I do?
Example : A user is doing a transaction from India morning 8.00 am .and user searches for the transaction he found the time is US date and time ,user get confused
So we need to change the time as local time .
you can use java script to find client timezone offset and send to a server to calculate clients timezone
Joined: Apr 05, 2010
Seetharaman Venkatasamy wrote:you can use java script to find client timezone offset and send to a server to calculate clients timezone
If possible send me the sample code
I am not aware how to manipulate date with the offset in java. can you help me
read from the server side and change the date while displaying .