* @return void
*/
function MECON_HTML_QuickForm_mdate($elementName=null, $elementLabel=null, $options=array(), $attributes=null) {
- $this->_options = array ('es' => array (
+ $this->_locales = array ('es' => array (
'weekdays_short'=> array ('' => '--', 'Dom', 'Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb'),
'weekdays_long' => array ('' => '--', 'Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'),
'months_short' => array ('' => '--', 'Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'),
'Octubre', 'Noviembre', 'Diciembre')
)
);
-
parent::HTML_QuickForm_date($elementName, $elementLabel,
array_merge(array('language'=>'es','format'=>'d F Y'), $options),
$attributes);
*/
function &getValue() {
if ($this->_selectedDate['Y']) {
- return new Date (@sprintf("%04d-%02d-%02d 00:00:00", $this->_selectedDate['Y'], $this->_selectedDate['F'], $this->_selectedDate['d']));
+ return new Date (@sprintf("%04d-%02d-%02d %02d:%02d:00",
+ $this->_selectedDate['Y'], $this->_selectedDate['F'],
+ $this->_selectedDate['d'], $this->_selectedDate['H'],
+ $this->_selectedDate['i']));
} else {
return null;
}