Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.

X Report information
Id: 36890
Status: resolved
Left: 0 min
Priority: 0/0
Queue: XML-FeedPP

Owner: Nobody
Requestors: illtud.daniel [...] llgc.org.uk
Cc:
AdminCc:

Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



X History Display mode: Brief headersFull headers
#   Fri Jun 20 13:54:17 2008 illtud.daniel[...]llgc.org.uk - Ticket created  
Subject: XML::FeedPP doesn't seem to accept two-digit date format
Date: Tue, 17 Jun 2008 18:08:22 +0100
To: bug-XML-FeedPP[...]rt.cpan.org
From: Illtud Daniel <illtud.daniel[...]llgc.org.uk>
[text/plain 616b]
XML::FeedPP version 0.35 doesn't seem to handle a two-digit date
format (eg 08 for 2008) in the pubDate field of RSS.

The RSS spec says that although a 4-digit year is preferable,
a two digit field is OK.

eg,
<pubDate>Tue, 26 Aug 08 11:00:00 GMT</pubDate>

comes out as:

0008-08-26T11:00:00Z

instead of:

2008-08-xxxx

--
Illtud Daniel illtud.daniel[...]llgc.org.uk
Uwch Ddadansoddwr Systemau Senior Systems Analyst
Llyfrgell Genedlaethol Cymru National Library of Wales
Yn siarad drosof fy hun, nid LlGC - Speaking personally, not for NLW


#   Sun Oct 26 00:30:32 2008 KAWASAKI - Correspondence added  
[text/plain 428b]
Now XML::FeedPP allows two-digit date format.
Thanks to Illtud Daniel and Anthony DeRobertis.

http://rt.cpan.org/Public/Bug/Display.html?id=36890
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503260

I've also added a test for Anthony's patch.
Version 0.36 updated will be soon available on CPAN:
http://search.cpan.org/dist/XML-FeedPP/

Or directly get from my website:
http://www.kawa.net/works/perl/feedpp/feedpp-e.html


#   Sun Oct 26 00:30:35 2008 RT_System - Status changed from 'new' to 'open'  
#   Sun Oct 26 00:30:38 2008 KAWASAKI - Status changed from 'open' to 'resolved'