ID: 22198
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Date/time related
Operating System: Solaris 8 (sparc)
PHP Version: 4.3.0
New Comment:
Please run "run-tests.php ext/standard/time/mktime.phpt" from your PHP
source dir and add the output to this report.
Previous Comments:
------------------------------------------------------------------------
[2003-02-12 20:10:16] [EMAIL PROTECTED]
I can't reproduce this to FreeBSD/Linux/Windows XP.
It outputs:
1048892400
29/03/2003
1048978800
30/03/2003
Anyway the timestamp is right, date might be the problem. Are you sure
you're really running this script?
------------------------------------------------------------------------
[2003-02-12 20:03:33] [EMAIL PROTECTED]
mktime() appears to be returning an incorrect timestamp under some
circunstances.
Sample script:
--------------
<?
$mk1= mktime (00,00,00,03,29,2003);
$frm1 = date ("d/m/Y", $mk1);
print "$mk1\n";
print "$frm1\n";
$mk2= mktime (00,00,00,03,30,2003);
$frm2 = date ("d/m/Y", $mk2);
print "$mk2\n";
print "$frm2\n";
?>
Outputs:
--------
1048896000
29/03/2003
1048978800
29/03/2003
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22198&edit=1