// $Rev$
//
-
-
require_once 'HTML/QuickForm/date.php';
require_once 'Date.php';
require_once 'Validate.php';
)
);
- parent::HTML_QuickForm_date($elementName, $elementLabel, $options, $attributes);
+ parent::HTML_QuickForm_date($elementName, $elementLabel,
+ array_merge(array('language'=>'es','format'=>'d F Y'), $options),
+ $attributes);
} //end constructor
// }}}
*/
function &getValue()
{
- if ($this->_selectedDate['Y'] != 00) {
+ if ($this->_selectedDate['Y']) {
return new Date (sprintf("%04d-%02d-%02d 00:00:00",$this->_selectedDate['Y'],$this->_selectedDate['F'],$this->_selectedDate['d']));
}
else {