]> git.llucax.com Git - mecon/meconlib.git/blobdiff - lib/MECON/HTML/QuickForm/mdate.php
Modifico para que tome hora y minutos
[mecon/meconlib.git] / lib / MECON / HTML / QuickForm / mdate.php
index a261647f5e81cdf5d1aee8d86792649500c95332..4ebf12272e722e47524241cbbf00583b8584c657 100644 (file)
@@ -99,7 +99,10 @@ class MECON_HTML_QuickForm_mdate extends HTML_QuickForm_date {
      */
     function &getValue() {
         if ($this->_selectedDate['Y']) {
      */
     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;
         }
         } else {
             return null;
         }