Since upgrading to 1.10.4 I have been unable to create a new Zend_Date using
just the TIME_SHORT part.

$date = new Zend_Date('18:30', Zend_Date::TIME_SHORT);

This will throw a Zend_Locale_Exception:
exception 'Zend_Locale_Exception' with message 'Unknown date format, neither
date nor time in '18:30' found' in /Zend/Locale/Format.php:837

So firstly is it acceptable to create a date in this way? It worked fine
before the upgrade.

If so the problem seems to lie with a conflict with Zend_Date::TIME_SHORT
and Zend_Locale territory 'TT' => 'en_TT' as these have the same value.

Is this a bug or should I be using the date in a different way?

Thanks for any feedback  
-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Unable-to-create-a-Zend-Date-using-TIME-SHORT-tp2225869p2225869.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to