Detecting timezone by visitors ip
Tuesday, May 6th, 2008Skien in his blog added great update of how to detect visitors timezone by his ip address. I think this is very important for international sites, portals or forums, where user is often confused when time is different on site and on his computers clock.
Through Planet PHP I found an article on Pre-populating forms with the timezone. I’d normally add a comment instead, but the comment would almost be larger then the original post, so I am instead writing up an entry myself. The post describes several ways to obtain the user’s timezone and use that to pre-fill a form. None of them are working properly though. I’ll try to explain for each of them why not, but first of all it is important to know what a timezone actually is.
In this article you will find example of how you can integrate this trick to your site, forum, portal or even blog.