Alex Pliutau
Alex Pliutau

Reputation: 21957

Unnormal exception in Date class in Zend Framework 2.0

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

Answers (1)

James C
James C

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

Related Questions