cvs: php4 /pear/Date Calc.php

From: Date: Mon, 20 Aug 2001 22:20:57 +0000
Subject: cvs: php4 /pear/Date Calc.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-595@lists.php.net to get a copy of this message
yavo Mon Aug 20 18:20:57 2001 EDT Modified files: /php4/pear/Date Calc.php Log: - Fixed getMonthFromFullName() method Index: php4/pear/Date/Calc.php diff -u php4/pear/Date/Calc.php:1.14 php4/pear/Date/Calc.php:1.15 --- php4/pear/Date/Calc.php:1.14 Mon Aug 20 18:14:20 2001 +++ php4/pear/Date/Calc.php Mon Aug 20 18:20:56 2001 @@ -1514,7 +1514,8 @@ /** * Returns the numeric month from the month name or an abreviation * - * Both August and Aug would return 8 + * Both August and Aug would return 8. + * Month name is case insensitive. * * @param string month name * @return integer month number @@ -1523,7 +1524,7 @@ $month = strtolower($month); $months = Date_Calc::getMonthNames(); while(list($id, $name) = each($months)){ - if(ereg($month, $name)){ + if(ereg($month, strtolower($name))){ return($id); } }

« previous php.pear.cvs (#595) next »