From: "Craig Brothers" <cbrothers@xxxxxxxxxxxxxxx>
I think your problem might be due to daylight savings time. 10/31/04 is the day that the clocks get set back 1 hour (at 2am). therefore we have 25 hours in the day on 10/31.
not sure how to get around it though, or why my system accounts for it.
You're just in a different time zone, more than likely. When I ran the code it went from 1800 on the 30th to 1700 on the 31st. Still "appearing" to be 23 hours, yet it's really 24 because of DST. The times you'll run into trouble (like the OP) is when the first time starts from 0000 - 0059 on 31 Oct. Then, adding 24 hours still leaves you in the same day.
There is an "I" tag in date() that'll return a 1 or 0 if it's DST and a flag in mktime() to account for DST, also.
---John Holmes...
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php