|
Posted by Daz on 02/10/07 22:16
Hi everyone. I know this question sounds stupid, but it's been
plaguing me, and as I can't seem to find the answer, and can't afford
to wait until the end of March for DST to kick into effect, I thought
I should ask here.
On my server, when I do:
echo date("0", mktime());
I get -0500. This suggests to me that the server is 5 hours behind GMT/
UTC time.
When I do:
echo gmdate("0", mktime());
I get +0000 , which is correct. However, the time I get is 1 hour 1
minute and 52 seconds ahead of what the actual GMT time is.
Does this mean that the locale is wrong, or would I simply subtract
and hour from the supposed GMT and get on with it?
The question that's plaguing me, is will the time leap forward on the
last Sunday of March, and would it be affected by whether or not the
country that the server is in conforms to DST?
I need to utilise a constant time (UTC), so I can tweak my script, and
never have to worry about different timezones and DST, but I am not
sure if I am doing it the right way.
I would appreciate it if someone could point out where I might be
going wrong (if anywhere), or whether it sounds like the server
locales are set incorrectly from what I have tried to explain.
Many thanks in advance.
Daz.
[Back to original message]
|