note 107987 rejected from function.mktime by aharvey
| From: | aharvey@php.net | Date: | Fri, 07 Sep 2012 01:14:11 +0000 |
| Subject: | note 107987 rejected from function.mktime by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190560@lists.php.net to get a copy of this message | ||
Note Submitter: tothpeter at fbi dot hu
----
using on mac with MAMP
$a=mktime(0,0,0,07,01,2012);
echo date('Y-m-d',$a); // 2012-07-01
$a=mktime(0,0,0,08,01,2012);
echo date('Y-m-d',$a); // 2011-12-01 WTF
$a=mktime(0,0,0,09,01,2012);
echo date('Y-m-d',$a); // 2011-12-01 WTF
$a=mktime(0,0,0,10,01,2012);
echo date('Y-m-d',$a); // 2012-10-01
$a=mktime(0,0,0,07,31,2012);
echo date('Y-m-d',$a); // 2012-07-31
WTF?