Reputation: 21957
I am using Zend Framework 2.0 for my application. It's a beta version now. I need to convert datetime from one format to another. But I get the next unnormal exception: The given path needs to be a directory
. In ZF 1.11 it works fine but not in 2.0. My simple code:
$date = new \Zend\Date\Date('29.12.2011 14:53:43', 'd.M.y H:m:s');
echo $date->get('y-MM-dd HH:mm:ss');
Thank you in advance.
Upvotes: 0
Views: 215
Reputation: 14149
This sounds like it could be an issue with the autoloader, out of interest what happens if you require in the Zend_Date class manually with require('/path/to/library/Zend/Date.php')
or similar?
Upvotes: 2