note 91467 deleted from function.date by tularis
| From: | tularis@php.net | Date: | Thu, 09 Feb 2012 20:57:10 +0000 |
| Subject: | note 91467 deleted from function.date by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-185988@lists.php.net to get a copy of this message | ||
Note Submitter: martinjsteven at gmail dot com
----
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.