ID: 9966
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: Date/time related
Description: date(today) and date(tomorrow) return twice the same date

well, thanks... that is more than a reasonable solving for me.

Previous Comments:

[2001-03-26 04:22:37] [EMAIL PROTECTED]
yeah, right... but what is the cure for this situation ? i mean i don't want to screw 
up my scripts because a common daylight saving time. i don't know if you know what i 
mean... it's just... silly


[2001-03-25 10:21:32] [EMAIL PROTECTED]
You have just discovered daylight savings time...


[2001-03-24 04:44:12] [EMAIL PROTECTED]
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.


Full Bug description available at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to