note 38116 deleted from function.mktime by aharvey
| From: | aharvey@php.net | Date: | Fri, 07 Sep 2012 01:21:44 +0000 |
| Subject: | note 38116 deleted from function.mktime by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190555@lists.php.net to get a copy of this message | ||
Note Submitter: iain at seatofthepants dot net
----
In the above example it should ne boted that if you try to calculate the command at midnight on the
28/04/2004 you will get an erroneous response. This has been driving me to distraction.
$myTime = mktime( 0, 0, 0, 3, 28, 2004);
Solution I found was to create the time at 3am well after the 2am daylight savings problem, viz:
$myTime = mktime( 3, 0, 0, 3, 28, 2004);
Not sure if this is documented anywhere.