From: Manuel Nazar Anchorena Date: Mon, 1 Dec 2003 19:59:11 +0000 (+0000) Subject: Modifico para que tome hora y minutos X-Git-Tag: svn_import~163 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/5febef942bb4452cbb1c8ed2bae8e9ebb80dc8ee Modifico para que tome hora y minutos --- diff --git a/lib/MECON/HTML/QuickForm/mdate.php b/lib/MECON/HTML/QuickForm/mdate.php index a261647..4ebf122 100644 --- a/lib/MECON/HTML/QuickForm/mdate.php +++ b/lib/MECON/HTML/QuickForm/mdate.php @@ -99,7 +99,10 @@ class MECON_HTML_QuickForm_mdate extends HTML_QuickForm_date { */ 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; }