Show
Ignore:
Timestamp:
05/18/06 17:11:36 (6 years ago)
Author:
nick
Message:

Newest, not oldest (doh!)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/RSS.pm

    r296 r297  
    6363  my @changes = $self->fetch_recently_changed_nodes(%args); 
    6464  my $rss_timestamp = $self->rss_timestamp( 
    65                               $self->fetch_oldest_for_recently_changed(%args) 
     65                              $self->fetch_newest_for_recently_changed(%args) 
    6666  ); 
    6767 
     
    216216=item B<rss_timestamp> 
    217217 
    218 Generate the timestamp for the RSS, based on the oldest node (if available) 
     218Generate the timestamp for the RSS, based on the newest node (if available) 
    219219 
    220220=cut 
    221221sub rss_timestamp 
    222222{ 
    223     my ($self, $oldest_node) = @_; 
    224  
    225     if ($oldest_node->{last_modified}) 
     223    my ($self, $newest_node) = @_; 
     224 
     225    if ($newest_node->{last_modified}) 
    226226    { 
    227         my $time = Time::Piece->strptime( $oldest_node->{last_modified}, $self->{timestamp_fmt} ); 
     227        my $time = Time::Piece->strptime( $newest_node->{last_modified}, $self->{timestamp_fmt} ); 
    228228 
    229229        my $utc_offset = $self->{utc_offset};