X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/606d4e1cf213a1e40db2d0eaf8f0060c9d928540..387525736846a1dad72e99ccf416708ff811c92c:/lib/MECON/HTML/QuickForm/mdate.php?ds=inline 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 {