PHP 4.0 Bug #9966: date(today) and date(tomorrow) return twice the same date

From: Date: Sat, 24 Mar 2001 09:44:12 +0000
Subject: PHP 4.0 Bug #9966: date(today) and date(tomorrow) return twice the same date
Groups: php.dev 
Request: Send a blank email to php-dev+get-49868@lists.php.net to get a copy of this message
From: leonardo@pcnet.ro 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

« previous php.dev (#49868) next »