Archive

Archive for January, 2012

How to obtain a users time zone via Javascript

January 2nd, 2012 No comments

This approach isn’t perfect, but for US users, it should be correct 100% of the time.

This blog author describes how he has created a function that uses the Javascript Date objects getTimeZoneOffset method to test various dates and determine what timezone the users computer is likely set to.

Here is the post: http://blog.redfin.com/devblog/2007/08/getting_the_time_zone_from_a_web_browser.html

Categories: javascript Tags: