Details
Description
Sample code to reproduce:
$START_DATE = new Zend_Date('25.12.2009', 'dd.MM.YYYY'); $END_DATE = new Zend_Date('15.01.2010', 'dd.MM.YYYY'); $cursor = new Zend_Date($START_DATE); while ($cursor->isEarlier($END_DATE)) { printf("%s<br/>", $cursor->toString('dd.MM.YYYY')); $cursor->addDay(7); }
Expected output:
25.12.2009 01.01.2010 08.01.2010
Actual output:
25.12.2009
01.01.2009 // <--
08.01.2010
Actually, further testing has shown that this is not a bug in addDay():
Output is: