Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
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
| This issue duplicates: | ||||
| ZF-5297 | READ FIRST: Incorrect year returned by Zend_Date. |
|
|
|
Please read the manual for the proper usage of format strings.