ZF-8332: Zend_Date fails on 31 of month
I've tested on two servers both with Zend Framework 1.9 and PHP 5.2.6 the following code:
$date = new Zend_Date(); $date->setDay(31); $date->setMonth(5); $date->setYear(2009);
print "DATE: ".date('d/m/Y', $date->getTimestamp());
Outputs: DATE: 01/05/2009
Expected Output: DATE: 31/05/2009
If you put any valid month that have 31 days you will always get 01 as day in the same month.