troubleshooting Question

Get local timezone/offset

Avatar of whiteeagl
whiteeagl asked on
4 Comments1 Solution1827 ViewsLast Modified:

I'm trying to retrieve the web user's timezone information through javascript. I need this to be sent to the server which is in a different timezone. I can retrieve the offset easily, but there is a problem with the daylight savings. I get a one hour difference on the server side.

How can I get the time current difference between user and server time?

I am using a Java application server with velocity web pages (no JSP). This is why I think I can only use JavaScript to achieve this.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros