ID: 26111
Updated by: [EMAIL PROTECTED]
Reported By: chris at astra dot net dot uk
-Status: Open
+Status: Feedback
Bug Type: Date/time related
Operating System: FreeBSD
PHP Version: 4.3.3
New Comment:
Try this too:
echo mktime(12,1,1,3,28,2004);
echo gmmktime(12,1,1,3,28,2004);
Just to note: These all work just fine with Linux. :)
Previous Comments:
------------------------------------------------------------------------
[2003-11-04 08:10:36] chris at astra dot net dot uk
echo date("r", mktime(1,1,1,3,28,2004));
echo date("r", gmmktime(1,1,1,3,28,2004));
returns:
Thu, 1 Jan 1970 00:59:59 +0100
Thu, 1 Jan 1970 00:59:59 +0100
------------------------------------------------------------------------
[2003-11-04 08:06:44] [EMAIL PROTECTED]
What do these output:
echo date("r", mktime(1,1,1,3,28,2004));
echo date("r", gmmktime(1,1,1,3,28,2004));
------------------------------------------------------------------------
[2003-11-04 08:00:54] chris at astra dot net dot uk
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 this bug report at http://bugs.php.net/?id=26111&edit=1