ZF-5371: Date output format bug

Issue Type: Bug Created: 2008-12-29T04:45:01.000+0000 Last Updated: 2008-12-29T07:48:41.000+0000 Status: Resolved Fix version(s): - Next Major Release ()

Reporter: Sergey Voyachek (voyachek) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

Related issues: - ZF-5297




$date = new Adept_Date('29.12.2008'); echo $date->toString('dd.MM.YYYY');

Result: 29.12.2009

But 2008 expected.

This bug happend today (29 Dec, on 28 Dec It works normally)

Version of Zend_Date: $Id: Date.php 13373 2008-12-19 12:22:49Z thomas $


Posted by Sergey Voyachek (voyachek) on 2008-12-29T05:29:59.000+0000

Same situation with:

$date = new Adept_Date(); $date->setDay(29); $date->setMonth(12); $date->setYear(2008); echo $date->toString('dd.MM.YYYY');

So I think that problem is in output methods.

Posted by Mickael Perraud (mikaelkael) on 2008-12-29T05:33:31.000+0000

Read the manual and use 'yyyy' ;)

Posted by Sergey Voyachek (voyachek) on 2008-12-29T05:44:22.000+0000

Yep... it helps ;-)

Posted by Thomas Weidner (thomas) on 2008-12-29T07:45:34.000+0000

Please do first look if a related issue already exist or has existed before creating same issues multiple times.

Posted by Thomas Weidner (thomas) on 2008-12-29T07:47:45.000+0000

Duplication of ZF-5297

Have you found an issue?

See the Overview section for more details.


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

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