I would have guessed Oct 31 would be evil...
| From: | Chris Hobbs | Date: | Wed, 07 Nov 2001 19:48:22 +0000 |
| Subject: | I would have guessed Oct 31 would be evil... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-73785@lists.php.net to get a copy of this message | ||
OK, this is weird! Simplified this to it's bare essentials:
$startDate = "20011031";
$endDate = "20011115";
$currDate = $startDate;
while ($currDate <= $endDate) {
echo "$currDate<br>\n";
$currDate = date('Ymd', strtotime($currDate)+(24*3600));
}
echo "Done!";
This works the way it's written. However, change the startDate so that 20011028 is included in the loop, and it never advances past Oct. 28. Any other 28th of the month seems to work fine.
Oddly enough, Oct. 29th of last year causes the same problem. What have I done wrong?
--
_______ ___ _ ____ _____
Chris Hobbs / ____\ \ / / | | |/ ___\| __ \
Head Geek | (___ \ \ / /| | | | (___ | | | |
WebMaster \___ \ \ \/ / | | | |\___ \| | | |
PostMaster ____) | \ / | |__| |____) | |__| |
\____/ \/ \____/ \____/|_____/
http://www.silvervalley.k12.ca.us
chobbs@silvervalley.k12.ca.us