[FX.php List] Date math driving me crazy

Derrick Fogle derrick at fogles.net
Wed Oct 3 11:13:49 MDT 2007


Doing a strtotime on a date only results in a "midnight" time for  
that date - within the "first hour of the next day" that ends up  
being rolled back to the previous day on the DST time change day.  
Adding a time of day to your date (i.e. strtotime($d[$x].' 11:59:59')  
will result in a unixtime that won't be affected by DST thresholds.

On Oct 3, 2007, at 11:57 AM, Nick wrote:

> because on November 4th the time changes.
> try printing out the time in your tests with date('m/d/Y h:i:s A', ...


Derrick Fogle
derrick at fogles.net





More information about the FX.php_List mailing list