Bug #15455 Updated: date() fails with negative timestamps
| From: | derick@php.net | Date: | Fri, 08 Feb 2002 20:29:40 +0000 |
| Subject: | Bug #15455 Updated: date() fails with negative timestamps | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-79760@lists.php.net to get a copy of this message | ||
ID: 15455
Updated by: derick@php.net
Reported By: dgw@qlogic.net
-Status: Open
+Status: Closed
Bug Type: Date/time related
Operating System: Windows 2000
PHP Version: 4.1.1
New Comment:
It's a limitation in windows' date routines. I'm afraid we can little
do about it for now.
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-02-08 14:45:09] dgw@qlogic.net
Simple to reproduce, only on windows:
$date = mktime(0,0,0,5,5,1965);
echo date('d-m-Y', $date);
This happens with timestamps before 01/01/1970 that results in a
negative number (like birth dates, for example).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15455&edit=1