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/Atom.pm

    r296 r297  
    5656    my @changes = $self->fetch_recently_changed_nodes(%args); 
    5757    my $atom_timestamp = $self->feed_timestamp( 
    58                               $self->fetch_oldest_for_recently_changed(%args) 
     58                              $self->fetch_newest_for_recently_changed(%args) 
    5959    ); 
    6060 
     
    151151=item B<feed_timestamp> 
    152152 
    153 Generate the timestamp for the Atom, based on the oldest node (if available) 
     153Generate the timestamp for the Atom, based on the newest node (if available) 
    154154 
    155155=cut 
    156156sub feed_timestamp 
    157157{ 
    158   my ($self, $oldest_node) = @_; 
    159    
    160   if ($oldest_node->{last_modified}) 
    161   { 
    162     my $time = Time::Piece->strptime( $oldest_node->{last_modified}, $self->{timestamp_fmt} ); 
     158  my ($self, $newest_node) = @_; 
     159   
     160  if ($newest_node->{last_modified}) 
     161  { 
     162    my $time = Time::Piece->strptime( $newest_node->{last_modified}, $self->{timestamp_fmt} ); 
    163163 
    164164    my $utc_offset = $self->{utc_offset};