Forum Moderators: coopster

Message Too Old, No Replies

PHP Date() function?

         

itwebxpert

10:22 am on May 28, 2004 (gmt 0)

10+ Year Member



Hi,

I am very new to PHP script. I have hosting my webpages with a free webhosting company.

I have a problem with php date() function. At the beginning, it displays both date and local time correctly. But at present, it displays only date correctly, but my local time (UK) is not correct; it is one hour behind?

Can anyone advise what ist the problem with that?

Thank you in advance.

itwebxpert

carneddau

10:30 am on May 28, 2004 (gmt 0)

10+ Year Member



Hi,

Sounds like your server is not set for BST (British Summer Time). A lot of hosting companies will leave the servers on GMT to keep international clients happy.

There are a bunch of scripts that will modify the time to set it to BST, just Google for "BST + PHP"

Cheers

itwebxpert

10:42 am on May 28, 2004 (gmt 0)

10+ Year Member



Hi,

Thank you for your quick help. Can you advise what codes should I use to modify that? Or where I can I get help for writing that codes?

Cheers

itwebxpert

2:41 pm on May 28, 2004 (gmt 0)

10+ Year Member



Hi,

I found the way to modify the php codes in order to change the local time from GMT or any to British Summer Time (BST). A function called time() is required to make the adjustment.

Cheers