Strtotime returns 02/09/2008 for "next Saturday"....



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 version of PHP,and it works ok.

More info:

Shell date: Thu Jan 31 09:44:50 EST 2008
echo date("Y-m-d g:i A T", time()); = 2008-01-31 10:00 AM EST
echo date("Y-m-d g:i A T", strtotime("next saturday")); = 2008-02-09 12:00
AM EST

version: 4.3.9 (highest version we can have at the moment)

I could not find this in the known bugs from this version....

So - is this something that is server or version specific?

TIA!

--
Cheers

Mike Morton

****************************************************
*
* Tel: 905-465-1263
* Email: mike@xxxxxxxxxxxx
*
****************************************************
.



Relevant Pages

  • Re: Strtotime returns 02/09/2008 for "next Saturday"....
    ... Mike Morton wrote: ... went kind of funky. ... on another server and different version of PHP,and it works ok. ... A typical solution to this is to use "+1". ...
    (php.general)
  • Re: gforth webserver, why isnt forth used all over ecommerce?
    ... spend a lot of time working around the compiler bugs etc. ... the reason why the manager looking to hire a programmer to do web applications isn't hiring Forth programmers is because Forth isn't on their radar screen. ... implementing yet another minimal HTTP server, or designing the application that rides on top of that server? ... The end result is that the Forth community has largely internalized the notion that "libraries are bad," supplemented with the usual array of pejorative, sour-grapes statements to go to justify it. ...
    (comp.lang.forth)
  • Re: If I get memory card, will email be stored on it?
    ... Microsoft cared about Windows Mobile quality, ... I've had Nokia phones that had more bugs than the Dash. ... in an IMAP mailbox, then when you send IMAP messages the copy ... Like many cellcos, AT&T offers their own SMTP server for customers whose ISPs block "off network" SMTP so any mail sent through AT&T's servers would NOT show up in your IMAP Sent folder, since your IMAP provider didn't actually "send" the mail- AT&T did on your behalf. ...
    (microsoft.public.pocketpc)
  • Re: Quality of FreeBSD
    ... Since then numerous bugs were fixed, ... large file systems, 64-bit support on newer AMD and Intel hardware, ... Since 6.x is maturing in pretty good synch with their deployment timeline ... as a virtual server product at an ISP. ...
    (freebsd-stable)
  • Rogerwilco 1.4.1.2 and 1.4.1.6 remix of bugs
    ... 1.4.1.2 (server and client buffer-overflow) ... Over 2 months ago I released an advisory about the bugs of the previous ... malformed packet to the attached clients. ...
    (Full-Disclosure)