Hello, When I add a second to '2010-12-31 23:59:59', I get '2010-01-01 00:00:00'. Instead of 2011 I have 2010
Test code : $t = '2010-12-31 23:59:59'; $zd = new Zend_Date($t, 'YYYY-MM-dd HH:mm:ss'); echo $zd->get('YYYY-MM-dd HH:mm:ss'); echo '<br>'; $zd->addSecond(1); echo $zd->get('YYYY-MM-dd HH:mm:ss'); echo '<br>'; Prints : 2010-12-31 23:59:59 2010-01-01 00:00:00 -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Zend-date-add-sub-methods-don-t-change-year-tp2544881p2544881.html Sent from the Zend Framework mailing list archive at Nabble.com.