Jump to content

world time


visitor

Recommended Posts

  • 3 weeks later...

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

Link to comment
https://forums.phpfreaks.com/topic/179818-world-time/#findComment-959819
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.