On 17/10/2004, at 3:03 PM, Curt Zirzow wrote:
* 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,
Can't find a zone.tab file on my system (Darwin, OS X), but I felt it's worth pointing out that I don't need to know the timezone of the user, I need to know the timezone of the event they're entering into the CMS... I was hoping to do this with an educated guess based on user input like country, state and town, rather than by asking the user (who isn't too technically minded) to decide.
Justin
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php