php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55960 RSS dc:date is in the wrong format
Submitted: 2004-01-07 14:45 UTC Modified: 2004-01-07 16:06 UTC
From: eln at gmx dot net Assigned: mj (profile)
Status: Closed Package: PECL website (PECL)
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2004-01-07 14:45 UTC] eln at gmx dot net
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..


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-07 16:06 UTC] mj@php.net
I've fixed that in CVS. The machine is located at pair Networks in Pittsburgh, which should be GMT -5.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 14:02:33 2024 UTC