#35769 [Opn->Bgs]: error handing dates prior to 1970
| From: | sniper@php.net | Date: | Thu, 22 Dec 2005 09:25:50 +0000 |
| Subject: | #35769 [Opn->Bgs]: error handing dates prior to 1970 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-90859@lists.php.net to get a copy of this message | ||
ID: 35769
Updated by: sniper@php.net
Reported By: php at 62nds dot com
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: linux
PHP Version: 4.4.2RC1
New Comment:
This depends lot on the OS behind. If you want reliable date handling
you have to start using PHP 5.1 which has new date code. This is not
critical bug in PHP 4 so it will never get fixed there.
Previous Comments:
------------------------------------------------------------------------
[2005-12-22 08:45:49] php at 62nds dot com
Example outputs "1969.12.31", mktime returns correct value
------------------------------------------------------------------------
[2005-12-22 08:42:22] php at 62nds dot com
Description:
------------
Wrong month and day returned by gmdate; year is correct most of the
time.
Reproduce code:
---------------
$membday = mktime(0, 0, 0, 6, 15, 1966);
echo gmdate('Y.m.d', $membday);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35769&edit=1