X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FXML%2FFeed%2FEntry%2FFormat%2FAtom.pm;h=d418a34fd864643bbc20a1f5be00e7ed42b9f935;hb=bee317869e7466d921710aae964e594abacb55e1;hp=bf670887f081968570baacc2114bdce41cb06e7a;hpb=3c6e943beccfd314423a34e4d0872047446587ef;p=catagits%2FXML-Feed.git 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; } }