Re: strange behaviour with strtotime()
| From: | James Benson | Date: | Tue, 31 Jan 2006 13:00:43 +0000 |
| Subject: | Re: strange behaviour with strtotime() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229538@lists.php.net to get a copy of this message | ||
The case makes no difference, because...
echo date('r', strtotime ("next Month"))."\n";
echo date('r', strtotime ("next month"))."\n";
gives...
Fri, 03 Mar 2006 12:52:54 +0000
Fri, 03 Mar 2006 12:52:54 +0000
BTW, Im using Debian, PHP 4.4.2 and my machines time zone is Europe/London
Few more tests I did:-
echo date('r', strtotime ("last month"))."\n";
works ok!
Sat, 31 Dec 2005 12:54:38 +0000
echo date('r', strtotime("next day"))."\n";
works ok
echo date('r', strtotime("next year"))."\n";
works ok
Very strange!