because on November 4th the time changes.<br>try printing out the time in your tests with date('m/d/Y h:i:s A', ...<br><br><div><span class="gmail_quote">On 9/30/07, <b class="gmail_sendername">Bob Patin</b> <<a href="mailto:bob@patin.com">
bob@patin.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">OK, I'm trying to figure out what's wrong with this:
<br><br><?php<br><br>$d1 = "10/28/2007";<br><br>$d2 = date("m/d/Y", strtotime ($d1) + 86400);<br>$d3 = date("m/d/Y", strtotime ($d1) + (2*86400));<br>$d4 = date("m/d/Y", strtotime ($d1) + (3*86400));
<br>$d5 = date("m/d/Y", strtotime ($d1) + (4*86400));<br>$d6 = date("m/d/Y", strtotime ($d1) + (5*86400));<br>$d7 = date("m/d/Y", strtotime ($d1) + (6*86400));<br>$d8 = date("m/d/Y", strtotime ($d1) + (7*86400));
<br>$d9 = date("m/d/Y", strtotime ($d1) + (8*86400));<br>$d10 = date("m/d/Y", strtotime ($d1) + (9*86400));<br>$d11 = date("m/d/Y", strtotime ($d1) + (10*86400));<br>$d12 = date("m/d/Y", strtotime ($d1) + (11*86400));
<br>$d13 = date("m/d/Y", strtotime ($d1) + (12*86400));<br><br><br>echo $d8."---".$d9;<br>?><br><br>This works fine with every month except when I'm working on November,<br>for some strange reason, and I can't figure out why.
<br><br>Look at $d8 and $d9; run that code and the dates will be the same;<br>why???<br><br>Now, take $d1 and change it to 10/25/2007, or 10/26 or 10/27; it<br>works fine; why is this happening?<br><br>Bob Patin<br>Longterm Solutions
<br><a href="mailto:bob@longtermsolutions.com">bob@longtermsolutions.com</a><br>615-333-6858<br><a href="http://www.longtermsolutions.com">http://www.longtermsolutions.com</a><br>Member of FileMaker Business Alliance and FileMaker TechNet
<br><br> CONTACT US VIA INSTANT MESSAGING:<br> AIM or iChat: longterm1954<br> Yahoo: longterm_solutions<br> MSN: <a href="mailto:tech@longtermsolutions.com">tech@longtermsolutions.com</a><br> ICQ: 159333060
<br><br>--------------------------<br>Contact us for FileMaker hosting for all versions of FileMaker<br>PHP • CDML • Full email services • Free DNS hosting • Colocation •<br>Consulting<br><br><br>_______________________________________________
<br>FX.php_List mailing list<br><a href="mailto:FX.php_List@mail.iviking.org">FX.php_List@mail.iviking.org</a><br><a href="http://www.iviking.org/mailman/listinfo/fx.php_list">http://www.iviking.org/mailman/listinfo/fx.php_list
</a><br></blockquote></div><br>