]> git.llucax.com Git - mecon/meconlib.git/commitdiff
Acomode la funcion getValue para que funcione correctamente con los nuevos
authorMartín Marrese <marrese@gmail.com>
Thu, 15 Jan 2004 20:53:16 +0000 (20:53 +0000)
committerMartín Marrese <marrese@gmail.com>
Thu, 15 Jan 2004 20:53:16 +0000 (20:53 +0000)
cambios de QuickForm.

lib/MECON/HTML/QuickForm/mdate.php

index 78aced3c42b990920b7e78eb574210d2cbf359f4..e454287899401d5a4002910cd293b9fac469bf4b 100644 (file)
@@ -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;
         }