Try:
$date = new Zend_Date('2007-07-25 13:55:49', Zend_Date::ISO_8601);
I seem to having issues with the following code:
Zend_Date::setOptions(array ('format_type' => 'php'));
$date = new Zend_Date ($mysqlDate);
echo $date->toString ('F j, Y, g:i a');
Now if $mysqlDate is equal to '2007-07-25 13:55:49' then the output
is 'July 25, 2007, 12:00 AM'.
The date component is clearly correct, but Zend_Date seems to have
difficulty with the time part. Is this something that Zend_Date is
not designed to do? Can anyone suggest another transparent method
for formatting these dates?
--
Simon Mundy | Director | PEPTOLAB
""" " "" """""" "" "" """"""" " "" """"" " """"" " """""" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654
4124
http://www.peptolab.com