ID:               38994
 Updated by:       [EMAIL PROTECTED]
 Reported By:      naox at yum dot pl
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: centos 4
 PHP Version:      5.1.6
 New Comment:

We are happy to tell you that you just discovered Daylight Savings
Time. For more information see:
http://webexhibits.org/daylightsaving/b.html
Instead of using mktime/date consider using gmmktime and gmdate which
do
not suffer from DST.




Previous Comments:
------------------------------------------------------------------------

[2006-09-29 15:12:26] naox at yum dot pl

Description:
------------
there is problem with mktime. it caclulates badly seconds in pedroids
27-28 march in some years like 2005. Possibly some other pedroids are
affected. this is just example to make bug search easier.

Reproduce code:
---------------
<?
$a1 = mktime(0,0,0,3,27,2005);
$a2 = mktime(0,0,0,3,28,2005);
$w = ($a2 - $a1) / 60 / 60 / 24;
echo $w;

echo "<br>\n";

$a1 = mktime(0,0,0,3,27,2006);
$a2 = mktime(0,0,0,3,28,2006);
$w = ($a2 - $a1) / 60 / 60 / 24;
echo $w;

?>

Expected result:
----------------
1
1

Actual result:
--------------
will show:
0.95833333333333
1


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38994&edit=1

Reply via email to