Timezone Issues

Hi,

Am i being an idiot when I think that the timezone of a local server should be the same as the local machine (on which the server is running) and when date functionality is called it should return the same date and time as the local machine?

If, i’m not, then why is it when I call various date functions, there all 1 hour behind the local machine time? and GMT difference is 0, which is understandable considering i’m in England, but why is the current time displayed from the script 20:24 when my system clock shows 21:24?

Am I being an idiot?

Cheer

I’ve checked the default timezone in the PHP ini file and it’s GMT.
I’ve restarted the server, etc and it’s still showing GMT-1 times.

Hmm…
It works when I set the timezone using: date_default_timezone_set(‘Europe/London’);

Hi,
Is this a linux based server?

Have you tried sym-linking “/usr/share/zoneinfo/Europe/London” to “/etc/localtime” ?

L4,

I suspect that the time differential (GMT) is off because you’re on Daylight Savings Time. The “local time” should account for DST but, because of the way countries are altering their DST dates, this may not be accurate.

Regards,

DK