Unable to create a Zend_Date using TIME_SHORT

Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Unable to create a Zend_Date using TIME_SHORT

moggs
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  
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to create a Zend_Date using TIME_SHORT

vignesh.agiratech
This post has NOT been accepted by the mailing list yet.
i am also facing the same issue and searching but not yet found solutions
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to create a Zend_Date using TIME_SHORT

Marco Pivetta
This post has NOT been accepted by the mailing list yet.
Zend_Date is dead and unsupported, folks!


On Thu, Jul 13, 2017 at 5:05 PM, vignesh.agiratech [via Zend Framework Community] <[hidden email]> wrote:
i am also facing the same issue and searching but not yet found solutions


If you reply to this email, your message will be added to the discussion below:
http://zend-framework-community.634137.n4.nabble.com/Unable-to-create-a-Zend-Date-using-TIME-SHORT-tp2225869p4663844.html
To start a new topic under Zend Framework, email [hidden email]
To unsubscribe from Zend Framework Community, click here.
NAML

Loading...