note 32926 added to function.date
| From: | jill at rack1 dot php dot net | Date: | Wed, 11 Jun 2003 07:22:52 +0000 |
| Subject: | note 32926 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50154@lists.php.net to get a copy of this message | ||
Note that (in the GMT timezone at least), the output of date('T',$stamp) is actually
"GMT Standard Time" - not "GMT" as documented in the manual.
This means that you can't guarantee to be able to feed back the output of date() into
strtodate(), even if the documentation says it will produce a valid string. The workaround is to
take a substring. For example:
$s = substr(date('D, d M Y H:i:s T',$stamp),0,29);
instead of:
$s = date('D, d M Y H:i:s T',$stamp),0,29;
Jill
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32926
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32926&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32926&report=yes