Re: guessing timezone based on country/state/city

From: Date: Sun, 17 Oct 2004 05:03:14 +0000
Subject: Re: guessing timezone based on country/state/city
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-199653@lists.php.net to get a copy of this message
* Thus wrote Justin French: > I have an event CMS where really, I should know the TZ of the events, > which can happen world wide. However the user base is not computer > heads, so I can't just "ask them". > > So, I'm faced with the prospect of making an educated guess based on > the Country, State and Capital City information provided by the user... > possibly I could interface with the files in /usr/share/zoneinfo/, or > perhaps there's a database I can download to hook into. It could be possible to figure out what zone one is in via the zone.tab file. It probably will be a lot of work just to figure that out, not to mention you need to be able to find the coordinates of the persons Country/State. Curt -- Quoth the Raven, "Nevermore."

« previous php.general (#199653) next »