ID: 15299 Updated by: jimw Old Summary: getdate function returns 'March' for month 2 and month 3 Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Calendar related Operating System: Linux, Windows98 PHP Version: 4.1.1 New Comment:
the thirtieth day of february is in march. Previous Comments: ------------------------------------------------------------------------ [2002-01-30 09:24:56] [EMAIL PROTECTED] PHP Version 4.0B2 (Linux) and PHP Version 4.0.6 (Windows) both show same problem $month=2 or $month=3 both produce 'March' as output ($monthName) $day=date("j"); $year=date("Y"); $dateArray=getdate(mktime(0,0,0,$month,$day,$year)); $monthName=$dateArray["month"]; return $monthName; ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15299&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]