I'm trying to write a bit of php to determine the date (Y-m-d format) for the next occurrence of a given weekday.
date('Y-m-d', strtotime('next monday'));
is returning
2011-08-29
instead of
2011-08-22
on my server. Not sure why. My server is an EC2 instance in Amazon's US East-Coast data center and it's currently 2011-08-21 9:40:00.
EDIT 1
Also date('Y-m-d', strtotime('next sunday'));
returns 2011-08-28
instead of today. I tried out this code on http://writecodeonline.com/php/ ... beginning to think that tester is inaccurate.