X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/606d4e1cf213a1e40db2d0eaf8f0060c9d928540..4074a55f24d59914f9d0738191fb3dfa3650bda1:/lib/MECON/HTML/QuickForm/mdate.php diff --git a/lib/MECON/HTML/QuickForm/mdate.php b/lib/MECON/HTML/QuickForm/mdate.php index f0886f9..6e47cb7 100644 --- a/lib/MECON/HTML/QuickForm/mdate.php +++ b/lib/MECON/HTML/QuickForm/mdate.php @@ -25,8 +25,6 @@ // $Rev$ // - - require_once 'HTML/QuickForm/date.php'; require_once 'Date.php'; require_once 'Validate.php'; @@ -60,7 +58,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 +99,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 {