Thread: Zend_Date bug?
View Single Post
  #1 (permalink)  
Old 02-26-2008, 12:40 PM
BobiKK BobiKK is offline
Junior Member
 
Join Date: Apr 2007
Location: Duisburg, Germany
Posts: 3
Default Zend_Date bug?

Code:
$date = new Zend_Date('31.12.2007', 'dd.MM.YYYY');
echo $date."<br />";
echo $date->toString('YYYY-MM-dd');
And the output is:
Dec 31, 2007 12:00:00 AM
2008-12-31

Am I doing something wrong?
For dates like 30.12.2007 and 31.12.2010 the output is correct: 2007-12-30 and 2010-12-31 respectively.

Last edited by BobiKK : 02-26-2008 at 01:52 PM.
Reply With Quote