X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/606d4e1cf213a1e40db2d0eaf8f0060c9d928540..d8d1303e69f2b5f4a495c128cc70ca0b78d7d3ce:/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 } + ?>