Issues

ZF-5281: Date conversion error ->toString('YYYY')

Issue Type: Bug Created: 2008-12-16T06:32:06.000+0000 Last Updated: 2008-12-17T14:38:44.000+0000 Status: Resolved Fix version(s): Reporter: Mariusz Panszczyk (malyem) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

Related issues: - ZF-5297

Attachments:

Description

<pre class="highlight">
$nn = new Zend_Date ( '2008-12-22', Zend_Date::DATES );
    
$nn->addDay ( 9 ); //use 7-9

print "toString ( 'YYYY-MM-dd' ): " . $nn->toString ( 'YYYY-MM-dd' )."<br></br>".
 "get ( Zend_Date::DATES): " . $nn->get ( Zend_Date::DATES)."<br></br>".
 "toString ( 'yyyy-MM-dd' ): " . $nn->toString ( 'yyyy-MM-dd' );

it return: toString ( 'YYYY-MM-dd' ): 200{color:red}9{color}-12-31 get ( Zend_Date::DATES): 2008-12-31 toString ( 'yyyy-MM-dd' ): 2008-12-31

Comments

Posted by Dolf Schimmel (Freeaqingme) (freak) on 2008-12-16T06:48:55.000+0000

Please see the FAQ on internationalization (last item).

Or review the manual more closely.

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts