From: Martín Marrese Date: Thu, 15 Jan 2004 20:53:16 +0000 (+0000) Subject: Acomode la funcion getValue para que funcione correctamente con los nuevos X-Git-Tag: svn_import~136 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/6afa6384d2745cdd3de0d3a00c7b3ef06c2b9f98?ds=sidebyside Acomode la funcion getValue para que funcione correctamente con los nuevos cambios de QuickForm. --- diff --git a/lib/MECON/HTML/QuickForm/mdate.php b/lib/MECON/HTML/QuickForm/mdate.php index 78aced3..e454287 100644 --- a/lib/MECON/HTML/QuickForm/mdate.php +++ b/lib/MECON/HTML/QuickForm/mdate.php @@ -87,11 +87,14 @@ class MECON_HTML_QuickForm_mdate extends HTML_QuickForm_date { * @return object Date. */ function &getValue() { - if ($this->_selectedDate['Y']) { + + $date = parent::getValue(); + + if ($date['Y']) { 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'])); + $date['Y'], $date['F'], + $date['d'], $date['H'], + $date['i'])); } else { return null; }