Hi

I am using a script similar to Scriptlance which is using the server time to datestamp everything and display dates and times of the start and end of projects.

The problem is that the server is in the US running on PDT time and I am in the UK running on GMT time.

Is there a way that I can globally declare for the script that each time (no pun intended) that the time() function is used it is the GMT timezone or offset it by a fixed amount?

I don't fancy having to go through the whole script to adjust each occasion the function is used.

Many thanks
Mark

Thank you very much!

I inserted

date_default_timezone_set('Europe/London');

into the config file and now everything is automatically showing as BST (British Summer Time).

Thanks again for your help.

Regards
Mark

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.