Bug #15299: getdate function returns 'March' for month 2 and month 3
| From: | davedill at hotmail dot com | Date: | Wed, 30 Jan 2002 14:24:57 +0000 |
| Subject: | Bug #15299: getdate function returns 'March' for month 2 and month 3 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-78559@lists.php.net to get a copy of this message | ||
From: davedill@hotmail.com
Operating system: Linux, Windows98
PHP version: 4.1.1
PHP Bug Type: Calendar related
Bug description: getdate function returns 'March' for month 2 and month 3
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 bug report at: http://bugs.php.net/?id=15299&edit=1