note 25468 added to function.gmmktime
| From: | randomsample at rack1 dot php dot net | Date: | Tue, 24 Sep 2002 22:01:01 +0000 |
| Subject: | note 25468 added to function.gmmktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37211@lists.php.net to get a copy of this message | ||
Do not use the 'is_dst' parameter, or pass -1, when calling gmmktime(). Otherwise, if the
system's local time zone uses daylight savings time, the result may be an hour off GMT,
depending on the specified date and what you pass for is_dst. (Internally, PHP uses the C
library's mktime function, and then tries to convert from local to GMT. But the is_dst
parameter overrides the default conversion.)
I don't think the 'is_dst' parameter is relevant to gmmktime and probably
shouldn't be there. Pretend that it isn't.
--
http://www.php.net/manual/en/function.gmmktime.php
http://master.php.net/manage/user-notes.php?action=edit+25468
http://master.php.net/manage/user-notes.php?action=delete+25468
http://master.php.net/manage/user-notes.php?action=reject+25468