[PHP-DEV] Bug in date calculation? From: Alexander Dohmen (alex <email protected>)
Date: 03/06/01

Hi there,

since i'm new in here i don't know if this bug is well known.
Try out this:

<?php
        $foo = strtotime("20001027");
        // $foo = strtotime("20001027 2:00:00");
        echo strftime("%x<br>", $foo);
        $ += 86400;
        echo strftime("%x<br>", $foo);
        $foo += 86400;
        echo strftime("%x<br>", $foo);
        $foo += 86400;
        echo strftime("%x<br>", $foo);
?>

Here only the commented out line instead of the line before works.
Otherwise the 29th of October will appear twice.
So it appears as if there is a bug in the date-calculation.

Greetings

A.D.

-- 
_________________________________________________________________
Alexander Dohmen                           mailto:alex <email protected>

NetCASE Interactive Solutions phone: +31 (0)46 420 1880 Dr. Nolenslaan 140 fax: +31 (0)46 420 1881 6136 GV Sittard http://www.netcase.nl _________________________________________________________________

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>