Changeset 297 for wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/RSS.pm
- Timestamp:
- 05/18/06 17:11:36 (6 years ago)
- Files:
-
- 1 modified
-
wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/RSS.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/RSS.pm
r296 r297 63 63 my @changes = $self->fetch_recently_changed_nodes(%args); 64 64 my $rss_timestamp = $self->rss_timestamp( 65 $self->fetch_ oldest_for_recently_changed(%args)65 $self->fetch_newest_for_recently_changed(%args) 66 66 ); 67 67 … … 216 216 =item B<rss_timestamp> 217 217 218 Generate the timestamp for the RSS, based on the oldest node (if available)218 Generate the timestamp for the RSS, based on the newest node (if available) 219 219 220 220 =cut 221 221 sub rss_timestamp 222 222 { 223 my ($self, $ oldest_node) = @_;224 225 if ($ oldest_node->{last_modified})223 my ($self, $newest_node) = @_; 224 225 if ($newest_node->{last_modified}) 226 226 { 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} ); 228 228 229 229 my $utc_offset = $self->{utc_offset};
