Changeset 355

Show
Ignore:
Timestamp:
03/07/06 10:36:19
Author:
miyagawa
Message:

Workaround if entry date is empty

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Feed.pm

    r310 r355  
    6666    my @entries = map { $_->[1] } 
    6767        sort { $b->[0] <=> $a->[0] } 
    68         map { [ $_->date || '', $_ ] } $self->entries; 
     68        map { [ $_->date || DateTime->from_epoch(epoch => 0), $_ ] } $self->entries; 
    6969 
    7070    $self->{entries} = \@entries; 
  • trunk/plagger/lib/Plagger/Plugin/Publish/Feed.pm

    r272 r355  
    5656        $entry->content($e->body); 
    5757        $entry->category(join(' ', @{$e->tags})); 
    58         $entry->issued($e->date)
     58        $entry->issued($e->date) if $e->date
    5959        $entry->author($e->author); 
    6060        $feed->add_entry($entry);