Skip to content
Browse files

Applying the missing bit of the patch from https://rt.cpan.org/Ticket…

  • Loading branch information...
1 parent 3c6e943 commit bee317869e7466d921710aae964e594abacb55e1 @davorg committed Mar 12, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/XML/Feed/Entry/Format/Atom.pm
View
6 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;
}
}

0 comments on commit bee3178

Please sign in to comment.
Something went wrong with that request. Please try again.