#546 [NEW]: RSS dc:date is in the wrong format
| From: | eln at gmx dot net | Date: | Wed, 07 Jan 2004 19:45:26 +0000 |
| Subject: | #546 [NEW]: RSS dc:date is in the wrong format | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-1187@lists.php.net to get a copy of this message | ||
From: eln at gmx dot net
Operating system: Irrelevant
PHP version: Irrelevant
PHP Bug Type: Web Site
Bug description: RSS dc:date is in the wrong format
Description:
------------
The dc:date in the rss files in /feeds/something.rss is in this format:
2004-01-07 08:04:51 which lacks timezone information which
confuses some RSS readers.
It is simple to fix:
Change
2004-01-07 08:04:51
to
2004-01-07T08:04:51+0X:00
(replacing X with the actual hours different from GMT)
As described by http://web.resource.org/rss/1.0/modules/dc/
and
http://www.w3.org/TR/NOTE-datetime
I've placed a simple patch for this at
http://www.ununique.net/div/Common.php.diff
But as I don't know the current time zone, it will need to be changed
anyway. It is also not real-world tested as I don't have a local
pear.php.net running..
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=546&edit=1
--