0

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

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by magicmarkuk
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.