strtotime question

From: Date: Tue, 06 Mar 2001 19:15:50 +0000
Subject: strtotime question
Groups: php.general 
Request: Send a blank email to php-general+get-42786@lists.php.net to get a copy of this message
Hi there, $ob->date is '2000/03/06'. $d = ereg_replace('([0-9]*)-([0-9]*)-([0-9]*)', '\2/\3/\1', $ob->date); $d is now '03/06/2000'. $foo = getdate(strtotime($d)+86400); Here I have to add an entire day to the value of strtotime($d) to get the expected results for below. echo "<P>" . $foo["weekday"] . ", " . $d . "<blockquote>\n"; Without adding a day to strtotime() $foo["weekday"] is 'Monday'. Is there some kind of timezone stuff I am not accounting for? or is it something else? Thanks, Jason

« previous php.general (#42786) next »