Bug #15299 Updated: getdate function returns 'March' for month 2 and month 3
| From: | davedill at hotmail dot com | Date: | Thu, 31 Jan 2002 00:46:24 +0000 |
| Subject: | Bug #15299 Updated: getdate function returns 'March' for month 2 and month 3 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-78629@lists.php.net to get a copy of this message | ||
ID: 15299
Comment by: davedill@hotmail.com
Reported By: davedill@hotmail.com
Status: Bogus
Bug Type: Calendar related
Operating System: Linux, Windows98
PHP Version: 4.1.1
New Comment:
Yes, that occurred to me a couple of hours after I submitted this.
Sorry!
Previous Comments:
------------------------------------------------------------------------
[2002-01-30 11:42:07] jimw@php.net
the thirtieth day of february is in march.
------------------------------------------------------------------------
[2002-01-30 09:24:56] davedill@hotmail.com
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