note 104390 rejected from function.strftime by danbrown
| From: | danbrown@php.net | Date: | Mon, 13 Jun 2011 13:48:14 +0000 |
| Subject: | note 104390 rejected from function.strftime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180473@lists.php.net to get a copy of this message | ||
Note Submitter: privat at thomasruecker dot at
----
Is the following a bug in PHP (5.2)?
<code>
$timestr="first wednesday june 2011";
echo strtotime(date("d.m.Y",$timestr));
</code>
Then the result is the 08.06.2011, and not the 01.06.2011 as i expected.
This happens whenever the "first" should be the 01.XX.YYYY
Same thing happens with the
"second","third","fourth","fifth".