From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version: 4.0.4pl1
PHP Bug Type: Date/time related
Bug description: date(today) and date(tomorrow) return twice the same date
I made a script that loops through a week ahead (starting from 19 of March 2001 and
includind the week of 19-25 of March 2001) and reads the data from a database
according to the date. I've noticed the '2001-03-24' is returned twice using the
following script:
for($i = 0; $i < 6; $i++)
{
$next_date = date("Y-m-d", mktime(0,0,0,date("m"),date("d")+$i,date("Y")));
print $next_date;
}
The script returns the same date with PHP 4.0.4 on IIS and Apache for Windows.
--
Edit Bug report at: http://bugs.php.net/?id=9966&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]