note 117397 rejected from function.date by cmb
| From: | cmb@php.net | Date: | Wed, 03 Jun 2015 14:33:58 +0000 |
| Subject: | note 117397 rejected from function.date by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-202736@lists.php.net to get a copy of this message | ||
Note Submitter: BG
----
Hi! I think there is a bug in PHP method strtotime:
echo date('Y-m-d',strtotime('June 2015 first monday'));
The answer is 2015-06-08, should be 2015-06-01... Tested with versions 5.6.2 and 5.2.16, same
result.