From: chris at astra dot net dot uk
Operating system: FreeBSD
PHP version: 4.3.3
PHP Bug Type: Date/time related
Bug description: mktime returns wrong date
Description:
------------
mktime returns -3662 when given mktime(0,0,0,3,28,2004), i have tested
this on 4.3.4RC1 with the same result.
Reproduce code:
---------------
echo date("r", mktime(0,0,0,3,28,2004))."<br>\n";
Expected result:
----------------
Sat, 28 Mar 2004 00:00:00 +0000
Actual result:
--------------
Wed, 31 Dec 1969 23:58:58 +0100
--
Edit bug report at http://bugs.php.net/?id=26111&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26111&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26111&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26111&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26111&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26111&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26111&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26111&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26111&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26111&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26111&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26111&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26111&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26111&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26111&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26111&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26111&r=float