Zend Framework

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

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Not an Issue
  • Affects Version/s: 1.6.0, 1.6.1, 1.6.2, 1.7 Preview Release
  • Fix Version/s: None
  • Component/s: Zend_Date
  • Labels:
    None

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

Issue Links

Activity

Hide
Thomas Weidner added a comment -

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

Show
Thomas Weidner added a comment - Please read the manual for the proper usage of format strings.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: