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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: eln at gmx dot net
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 18 13:01:27 2024 UTC