X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/5a0d132114ac7da02edf4c676c6bb6e55f45b4d4..eee21d728f349cbda8970732622f00e6d5610ef1:/HTML/php/QuickForm/mdate.php diff --git a/HTML/php/QuickForm/mdate.php b/HTML/php/QuickForm/mdate.php index e364286..7f89537 100644 --- a/HTML/php/QuickForm/mdate.php +++ b/HTML/php/QuickForm/mdate.php @@ -116,8 +116,9 @@ class HTML_QuickForm_mdate extends HTML_QuickForm_date * @access public * @return bool */ - function validate($fecha) + function validate($valor, $nombre, $formato = '') { - return Validate::date($fecha, array('format' => '%Y-%m-%d')) + return Validate::date($valor['Y'].'-'.$valor['d'].'-'.$valor['F'], array('format' => '%Y-%m-%d')); } // end func validate +} ?>