ZF-10773: Format not set when using Date validator

Description

When using Zend_Validate_Date with Zend_Locale taken form registry I get following validation error: "'something' does not fit the date format ''" where format is empty. It seems that $this->_format is not set from $this->_locale. Zend_Date::isDate internally gets format from locale but outside in Zend_Validate_Date::isValid it is not known.

Comments

Which locale is being used? Which date is used? Which parameters are set within validate_date?

My Date validator does not have any additional parameters and is set-up like this 'validators' => array( array('Date'), ) Locale is set through application.ini: resources.locale.default = "en" resources.locale.force = true When I enter any text into date field (with attached jquery Datepicker) I got message: 'foo' does not fit the date format ''

I believe the Date validator should get the date format from locale which is set-up and display it correctly to the user...

I can confirm this bug.

Same happens here... ZF 1.11.11. Setting Zend_Locale in the registry prevents Zend_Validate_Date from working with the following error message: "'2011-01-01' does not fit the date format '' " (with empty format).