ID: 15455
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Date/time related
Operating System: Windows 2000
PHP Version: 4.1.1
New Comment:
Just for clarification:
"localtime returns a pointer to the structure result. If the value in
timer represents a date before midnight, January 1, 1970, localtime
returns NULL." - right from the MSDN. And a NULL value can't be used to
turn into something meaningful.
Previous Comments:
------------------------------------------------------------------------
[2002-02-08 15:29:40] [EMAIL PROTECTED]
It's a limitation in windows' date routines. I'm afraid we can little
do about it for now.
Derick
------------------------------------------------------------------------
[2002-02-08 14:45:09] [EMAIL PROTECTED]
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php