Bug #15455: date() fails with negative timestamps
| From: | dgw at qlogic dot net | Date: | Fri, 08 Feb 2002 19:45:10 +0000 |
| Subject: | Bug #15455: date() fails with negative timestamps | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-79753@lists.php.net to get a copy of this message | ||
From: dgw@qlogic.net
Operating system: Windows 2000
PHP version: 4.1.1
PHP Bug Type: Date/time related
Bug description: date() fails with negative timestamps
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 bug report at http://bugs.php.net/?id=15455&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15455&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15455&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15455&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15455&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15455&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15455&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15455&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15455&r=submittedtwice