History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ZF-4656
Type: Bug Bug
Status: Resolved Resolved
Resolution: Not an Issue
Priority: Critical Critical
Assignee: Thomas Weidner
Reporter: Arnaud Selvais
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

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

Created: 20/Oct/08 06:23 PM   Updated: 17/Dec/08 02:34 PM
Component/s: Zend_Date
Affects Version/s: 1.6.1, 1.6.0, 1.6.2, 1.7 Preview Release
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Duplicate
 

Tags:
Participants: Arnaud Selvais and Thomas Weidner


 Description  « Hide
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



 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Thomas Weidner - 21/Oct/08 12:38 AM
Please read the manual for the proper usage of format strings.