Zend Framework

Date conversion error ->toString('YYYY')

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7.1
  • Fix Version/s: None
  • Component/s: Zend_Date
  • Labels:
    None

Description

$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>".
 "get ( Zend_Date::DATES): " . $nn->get ( Zend_Date::DATES)."<br>".
 "toString ( 'yyyy-MM-dd' ): " . $nn->toString ( 'yyyy-MM-dd' );

it return:
toString ( 'YYYY-MM-dd' ): 2009-12-31
get ( Zend_Date::DATES): 2008-12-31
toString ( 'yyyy-MM-dd' ): 2008-12-31

Issue Links

Activity

Hide
Dolf Schimmel (Freeaqingme) added a comment -

Please see the FAQ on internationalization (last item).

Or review the manual more closely.

Show
Dolf Schimmel (Freeaqingme) added a comment - Please see the FAQ on internationalization (last item). Or review the manual more closely.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: