note 91467 added to function.date
| From: | martinjsteven at gmail dot com | Date: | Thu, 11 Jun 2009 11:20:41 +0000 |
| Subject: | note 91467 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-156768@lists.php.net to get a copy of this message | ||
A quick note about DATE_RSS and daylight savings...
DATE_RSS will return the timezone that your server is in as part of the format, which is normally
correct when formatting a date for an RSS feed (RFC-822).
However, if you're in the UK and it's the summer, your timezone is set as "BST".
This is not actually a valid RFC-822 timezone, thereby rendering DATE_RSS a bit useless for six
months of the year.
The valid extension would actually be GMT. You should therefore adjust the time back by 1 hour and
substitute the BST for GMT.
----
Server IP: 69.147.83.197
Probable Submitter: 81.145.46.124
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- https://master.php.net/note/edit/91467
Del: integrated -- https://master.php.net/note/delete/91467/integrated
Del: useless -- https://master.php.net/note/delete/91467/useless
Del: bad code -- https://master.php.net/note/delete/91467/bad+code
Del: spam -- https://master.php.net/note/delete/91467/spam
Del: non-english -- https://master.php.net/note/delete/91467/non-english
Del: in docs -- https://master.php.net/note/delete/91467/in+docs
Del: other reasons-- https://master.php.net/note/delete/91467
Reject -- https://master.php.net/note/reject/91467
Search -- https://master.php.net/manage/user-notes.php