*/ class Varien_Data_Form_Filter_Datetime extends Varien_Data_Form_Filter_Date { /** * Returns the result of filtering $value * * @param string $value * @return string */ public function inputFilter($value) { $filterInput = new Zend_Filter_LocalizedToNormalized(array( 'date_format' => $this->_dateFormat, 'locale' => $this->_locale )); $filterInternal = new Zend_Filter_NormalizedToLocalized(array( 'date_format' => Varien_Date::DATETIME_INTERNAL_FORMAT, 'locale' => $this->_locale )); $value = $filterInput->filter($value); $value = $filterInternal->filter($value); return $value; } /** * Returns the result of filtering $value * * @param string $value * @return string */ public function outputFilter($value) { $filterInput = new Zend_Filter_LocalizedToNormalized(array( 'date_format' => Varien_Date::DATETIME_INTERNAL_FORMAT, 'locale' => $this->_locale )); $filterInternal = new Zend_Filter_NormalizedToLocalized(array( 'date_format' => $this->_dateFormat, 'locale' => $this->_locale )); $value = $filterInput->filter($value); $value = $filterInternal->filter($value); return $value; } }