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

-- 
PHP General Mailing List (http://www.php.net/)
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