date change year bug
Posted: Thu Dec 31, 2009 5:18 am
This code:
Prints:
Is this a bug?
Code: Select all
<?php
for($i=0; $i<7; $i++) {
//should print today and 6 days after
echo date("o-m-d", mktime() + $i * 86400);
echo '<br />';
}
?>Code: Select all
2009-12-31
2009-01-01
2009-01-02
2009-01-03
2010-01-04
2010-01-05
2010-01-06Is this a bug?