ZF-4656: toString('YYYY-MM-dd') sends us in the future...

Description

Using the code below to format my date, the year is 2009 but should be 2008 (like displayed correctly by the print $date):

Code: $datearray = array('year' => '2008', 'month' => '12', 'day' => '30' ); $date = new Zend_Date($datearray); print $date->toString('YYYY-MM-dd')."\n"; print $date;

Output: 2009-12-30 Dec 30, 2008 12:00:00 AM

Comments

Please read the manual for the proper usage of format strings.