Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.