Automatically detect your user’s time zone using JavaScript
Demo
Read a post on my blog about how it works.
Update
Jon Nylander has taken my original code and written a more robust solution. I encourage you to check out his version and use it instead.
Credits & license:
- Released by Josh Fraser (joshfraz@gmail.com)
- Released under Apache 2.0 license