]> git.llucax.com Git - mecon/meconlib.git/commitdiff
Modifico para que tome hora y minutos
authorManuel Nazar Anchorena <manazar@mecon.gov.ar>
Mon, 1 Dec 2003 19:59:11 +0000 (19:59 +0000)
committerManuel Nazar Anchorena <manazar@mecon.gov.ar>
Mon, 1 Dec 2003 19:59:11 +0000 (19:59 +0000)
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;
         }