PHP 4.0 Bug #6345 Updated: wrong days in december of 2000
| From: | Bug Database | Date: | Thu, 21 Sep 2000 14:20:31 +0000 |
| Subject: | PHP 4.0 Bug #6345 Updated: wrong days in december of 2000 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33536@lists.php.net to get a copy of this message | ||
ID: 6345
Updated by: sniper
Reported By: hydrix@earthlink.net
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
Previous Comments:
---------------------------------------------------------------------------
[2000-08-27 16:45:36] hholzgra@php.net
which "example below", can't see any ... ?
---------------------------------------------------------------------------
[2000-08-27 16:14:43] hydrix@earthlink.net
aren't there 31 days in december? when doing the getdate and trying to display 31 days in
december, I only get 30 days in december while trying to do the example I tried below instead of
getting 31 days.
---------------------------------------------------------------------------
[2000-08-27 05:56:06] stas@php.net
977893200 is a timestamp for Decemer 27. And as far as I see when using right timestamp it gets
right results.
---------------------------------------------------------------------------
[2000-08-25 04:27:26] hydrix@earthlink.net
I've found a bug doing some calendar scripts. For example
$blah = getdate(977893200);
echo $blah[mday]; (the unix timestamp is a december 200 ts)
shows only 30 days for december. No wonder I have been getting so many headaches! Yall need to fix
this little bug. :)
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6345