X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/606d4e1cf213a1e40db2d0eaf8f0060c9d928540..3cc75c9973fbeb7bc99ddb7befa6f5199d3680d1:/lib/MECON/HTML/QuickForm/mdate.php diff --git a/lib/MECON/HTML/QuickForm/mdate.php b/lib/MECON/HTML/QuickForm/mdate.php index f0886f9..6e5a8d3 100644 --- a/lib/MECON/HTML/QuickForm/mdate.php +++ b/lib/MECON/HTML/QuickForm/mdate.php @@ -1,31 +1,28 @@ - +------------------------------------------------------------------------------- +$Id$ +-----------------------------------------------------------------------------*/ require_once 'HTML/QuickForm/date.php'; require_once 'Date.php'; @@ -60,7 +57,9 @@ class HTML_QuickForm_mdate extends HTML_QuickForm_date ) ); - 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 // }}} @@ -99,7 +98,7 @@ class HTML_QuickForm_mdate extends HTML_QuickForm_date */ 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 { @@ -131,4 +130,5 @@ class HTML_QuickForm_mdate extends HTML_QuickForm_date } } // end func validate } + ?>