Zend Framework

Zend_Date localized and MySQL datetime column

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Not an Issue
  • Affects Version/s: 1.9.0, 1.9.1
  • Fix Version/s: 1.9.2
  • Component/s: Zend_Date
  • Labels:
    None

Description

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.

Activity

Hide
Thomas Weidner added a comment -

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.

Show
Thomas Weidner added a comment - 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.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: