Details
Description
$date1 = new Zend_Date('301207', 'ddMMYY'); echo $date1->toString('ddMMYY'); echo $date1; $date2 = new Zend_Date('311207', 'ddMMYY'); echo $date2->toString('ddMMYY'); echo $date2;
301207
30 Dec 2007 00:00:00
311208 // + 1 year
31 Dec 2007 00:00:00
It looks like the date was parsed correctly and it's stored internally with the right year but when I display it the year jumps to 2008
See into the manual http://framework.zend.com/manual/en/zend.date.constants.html
There is a note after the section about using self defined ISO formats and often made mistakes due to wrong format tokens.
Instead of the ISO-year token you should use the real year token.
So just change "Y" to "y" and that's it.