Page 1 of 1

date() driving me crazy

Posted: Wed Jul 28, 2004 9:48 am
by JayBird
I can't find the logical explanation for this

i run this code somewhere in my script

Code: Select all

echo date("l dS F, Y \\a\\t H:i:s", '1091025855');
This should output

Code: Select all

Wednesday 28th July, 2004 at 15:44:15
but it is outputting..

Code: Select all

Wednesday 28th July, 2004 at 14:44:15
Notice that is is one hour behind what it should be.

I have no idea why!!!

Mark

Posted: Wed Jul 28, 2004 10:07 am
by Skittlewidth
We're on BST at the moment! (British Summer Time)

Posted: Wed Jul 28, 2004 10:08 am
by JayBird
Nope, not the problem.

The timestamp gets update on the hour, now it has just turned 4 o'clock, the output is correct for some reason.

Dunno why it was doing that, but it seems to be working okay now!!

Mark

Posted: Wed Jul 28, 2004 10:12 am
by Weirdan
well, it gives me

Code: Select all

Wednesday 28th July, 2004 at 17:44:15
:lol:

Posted: Wed Jul 28, 2004 10:14 am
by Skittlewidth
Odd. My problems always seem to fix themselves the second I post as well :)