From: Dave Cross Date: Mon, 12 Mar 2012 14:36:45 +0000 (+0000) Subject: Applying the missing bit of the patch from https://rt.cpan.org/Ticket/Display.html... X-Git-Tag: RELEASE_0.48~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FXML-Feed.git;a=commitdiff_plain;h=bee317869e7466d921710aae964e594abacb55e1 Applying the missing bit of the patch from https://rt.cpan.org/Ticket/Display.html?id=20763 --- diff --git a/lib/XML/Feed/Entry/Format/Atom.pm b/lib/XML/Feed/Entry/Format/Atom.pm index bf67088..d418a34 100644 --- a/lib/XML/Feed/Entry/Format/Atom.pm +++ b/lib/XML/Feed/Entry/Format/Atom.pm @@ -145,7 +145,11 @@ sub issued { if (@_) { $entry->{entry}->issued(DateTime::Format::W3CDTF->format_datetime($_[0])) if $_[0]; } else { - $entry->{entry}->issued ? iso2dt($entry->{entry}->issued) : undef; + return iso2dt($entry->{entry}->issued) + if $entry->{entry}->issued; + return iso2dt($entry->{entry}->published) + if $entry->{entry}->published; + return undef; } }