visitor Posted November 1, 2009 Share Posted November 1, 2009 Hi Does anyone know if a script in PHP5 exists with different cities (i.e. New York, London, Zurich, Tokyo etc.) in different timezones, where time changes automatically during DST? Thanks, visitor Quote Link to comment https://forums.phpfreaks.com/topic/179818-world-time/ Share on other sites More sharing options...
felixtgomezjr Posted November 18, 2009 Share Posted November 18, 2009 I am not so sure if there is but I would also like to see it. Anyway, what I am thinking is that you can explicitly tell php what to do if the user is in new york. My logic is this. 1. Get the IP address. 2. From IP address, get the country/city 3. Use the info of #2 for your IF condition. I am not so sure if I get your question right. But if you will just need to have a "local" time, you can use PHP's function for that. I have such article about it here Shoutbux Quote Link to comment https://forums.phpfreaks.com/topic/179818-world-time/#findComment-959819 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.