Jump to content

get time on remote server


mouli

Recommended Posts

Hi

Several of my sites show the current date and time on the page which worked fine until I moved servers from new zealand to the USA.

Is still want the sites to show new zealand time which I understand I can do using a time zone shift on the local date/time but I dont think it can account for time changes in New Zealand due to Summer Time (+1 hour) day light saving.

I am currently using an include on a new zealand server to send the NZ time stamp to the pages in USA but now we have moved to summertime and the server time has not. I dont have access to the include script so what I'm  looking for is a way to get the time stamp from a remote server that accounts for day light saving etc.

 

Any ideas would be most welcome.

Link to comment
https://forums.phpfreaks.com/topic/73165-get-time-on-remote-server/
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.