tags:

views:

83

answers:

3

If I run "next saturday" into strtotime function it shows 4/3/2010 as the date. Why does it not show 4/10?

A: 

try:

ini_set('date.timezone', 'America/Los_Angeles');

or edit your php.ini

Leo
nope, i tried both. :-(
luckytaxi
A: 

got it ...

strtotime('next Saturday', strtotime('+1 day'));
luckytaxi
@luckytaxi - What timezone are you in?
Brant
im on the east coast, I used "America/New_York"
luckytaxi
@luckytaxi - Look at the answer I provided.
Brant
+1  A: 

Other Timezones

date_default_timezone_set("Etc/GMT-5");
$time = strtotime('Saturday +7 day');
$date = date("m/d/Y",$time);
Brant