I have a weird problem figuring out the following day of a given date.
Example:
$my_date = "2002-10-26";
$my_timestamp = strtotime($my_date);
$my_timestamp += 86400; // day in seconds 24 60 60
$next_day = date('Y-m-d',$my_timestamp);
This works fine until the date is "2002-10-27". For some reason I get "2002-10-27" as the next day!?!?!