[PHP] Strtotime returns 02/09/2008 for next Saturday....

2008-01-31 Thread Mike Morton
I have been using: $nextSaturday= date(m/d/Y,strtotime(next saturday)); For months long time now with out problems, but in the last two days, it went kind of funky. It is now returning: 02/09/2008 instead of the expected 02/02/2008. I have tried the same code on another server and different

Re: [PHP] Strtotime returns 02/09/2008 for next Saturday....

2008-01-31 Thread Mike Morton
Ya - the other server is 4.4.7 However - this does not seem to be the problem necessarily: print date(m/d/Y,strtotime(next saturday)); 02/09/2008 print date(m/d/Y,strtotime(next sunday)); 02/10/2008 print date(m/d/Y,strtotime(next monday)); 02/11/2008 print date(m/d/Y,strtotime(next

Re: [PHP] Strtotime returns 02/09/2008 for next Saturday....

2008-01-31 Thread Tom Chubb
On 31/01/2008, Mike Morton [EMAIL PROTECTED] wrote: I have been using: $nextSaturday= date(m/d/Y,strtotime(next saturday)); For months long time now with out problems, but in the last two days, it went kind of funky. It is now returning: 02/09/2008 instead of the expected 02/02/2008. I

Re: [PHP] Strtotime returns 02/09/2008 for next Saturday....

2008-01-31 Thread Tom Chubb
On 31/01/2008, Mike Morton [EMAIL PROTECTED] wrote: Ya - the other server is 4.4.7 However - this does not seem to be the problem necessarily: print date(m/d/Y,strtotime(next saturday)); 02/09/2008 print date(m/d/Y,strtotime(next sunday)); 02/10/2008 print date(m/d/Y,strtotime(next

Re: [PHP] Strtotime returns 02/09/2008 for next Saturday....

2008-01-31 Thread Richard Lynch
Maybe it's just me, but I've never quite figured out what people mean when they say next Saturday... Do they mean the next one coming up? Or do they mean that there's this Saturday coming up and next Saturday the one after that? And if I can't figure it out, why would you expect PHP to figure

Re: [PHP] Strtotime returns 02/09/2008 for next Saturday....

2008-01-31 Thread Jochem Maas
Mike Morton schreef: Good point ;) Except that generally, when am told next Saturday - I take that to mean the next Saturday - just one more ambiguity in the english language that makes it so hard to learn I suppose! The odd thing about this whole situation it that it seems to have cropped up

Re: [PHP] Strtotime returns 02/09/2008 for next Saturday....

2008-01-31 Thread Mike Morton
Good point ;) Except that generally, when am told next Saturday - I take that to mean the next Saturday - just one more ambiguity in the english language that makes it so hard to learn I suppose! The odd thing about this whole situation it that it seems to have cropped up just after we upgraded

Re: [PHP] Strtotime returns 02/09/2008 for next Saturday....

2008-01-31 Thread Richard Lynch
On Thu, January 31, 2008 3:29 pm, Mike Morton wrote: Except that generally, when am told next Saturday - I take that to mean the next Saturday - just one more ambiguity in the english language that makes it so hard to learn I suppose! strtotime has always seemed to me like it's bordering on