Re: Strtodate() bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've got some weird behavior using PHP 4.3.9.  I use the function of
strtotime("last Sunday"); and it's returning the timestamp for last
Saturday.  However, if I use strtotime("-1 day"); (I'm running this program
on a Monday) it returns the correct timestamp for Sunday.

Is this a bug in PHP 4.3.9?

Probably.  5.1.2 says:

$x = strtotime("last Sunday");
print ( date('r', $x) );
Sun, 02 Apr 2006 00:00:00 -0800

4.3.9 is *really* old.

-philip

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux