ZF-7627: Zend_Date localized and MySQL datetime column

Issue Type: Bug Created: 2009-08-18T10:57:31.000+0000 Last Updated: 2009-08-18T11:24:02.000+0000 Status: Resolved Fix version(s): - 1.9.2 (25/Aug/09)

Reporter: Edi Skraba (edspiner) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

Related issues: Attachments:


The localized format for Zend_Date in pl_PL has changed from yyyy-MM-dd HH:mm:ss to dd-MM-yyyy HH:mm:ss. Altought it is a correct format for the localization it's not compatible with MySQL datetime field witch now doesn't accept the velues generated by Zend_Date.


Posted by Thomas Weidner (thomas) on 2009-08-18T11:24:02.000+0000

When you want to store a date in a database then use the correct date format.

Localized formats are "localized" and not intended to be stored into a DB datefield. Look into Zend_Filter_LocalizedToNormalized or into your DB how to handle localized dates.

Closing as non issue.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.