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

Issue Type: Bug Created: 2008-10-20T18:23:04.000+0000 Last Updated: 2008-12-17T14:34:41.000+0000 Status: Resolved Fix version(s): Reporter: Arnaud Selvais (aselvais) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

Related issues: - ZF-5297



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


Posted by Thomas Weidner (thomas) on 2008-10-21T00:38:45.000+0000

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

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.