Page 1 of 1

PHP4 & PHP5 timestamp difference

Posted: Mon Nov 05, 2007 11:27 am
by pickle
Hi all,

I've got 2 boxes here running PHP4 & PHP5.

The PHP4 box says 1:00 AM November 4th, 2007 MST is 1194163200
The PHP5 box says 1:00 AM November 4th, 2007 MST is 1194159600

Which one is correct & does anyone know why the difference? I'd tend to believe PHP4 is correct because it actually takes into consideration the missing hour.

Posted: Mon Nov 05, 2007 11:46 am
by seppo0010
I´m actually getting 1194159600 using PHP 4.4.4 and PHP 5.2.0

Posted: Mon Nov 05, 2007 12:23 pm
by feyd
I would suspect one has been updated with the newest set of Daylight times while the other has not.

Posted: Mon Nov 05, 2007 12:26 pm
by pickle
Are there PHP patches one has to install? Both boxes output the same date & time when I call date from the command-line.

Posted: Mon Nov 05, 2007 4:13 pm
by Benjamin
Are both boxes set to the correct timezone? I'm not sure it's PHP related.

Posted: Mon Nov 05, 2007 5:22 pm
by Kieran Huggins
Wouldn't the DST issue be moot at this point (DST is over)?

Check the BIOS time for both machines.

Or maybe you just didn't get your hoe ready?
link

Posted: Mon Nov 05, 2007 5:51 pm
by feyd
DST ends at 2 AM on November 4 in the US regions.

Posted: Mon Nov 05, 2007 8:42 pm
by Kieran Huggins
ooooohhhhhhh..... right. :oops:

You've probably compared dates outside DST already... so was that it?