Bug in date calculation?
| From: | Alexander Dohmen | Date: | Tue, 06 Mar 2001 09:18:29 +0000 |
| Subject: | Bug in date calculation? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-48005@lists.php.net to get a copy of this message | ||
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@netcase.nl
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
_________________________________________________________________