Changeset 297
- Timestamp:
- 05/18/06 17:11:36 (6 years ago)
- Location:
- wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/Atom.pm
r296 r297 56 56 my @changes = $self->fetch_recently_changed_nodes(%args); 57 57 my $atom_timestamp = $self->feed_timestamp( 58 $self->fetch_ oldest_for_recently_changed(%args)58 $self->fetch_newest_for_recently_changed(%args) 59 59 ); 60 60 … … 151 151 =item B<feed_timestamp> 152 152 153 Generate the timestamp for the Atom, based on the oldest node (if available)153 Generate the timestamp for the Atom, based on the newest node (if available) 154 154 155 155 =cut 156 156 sub feed_timestamp 157 157 { 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} ); 163 163 164 164 my $utc_offset = $self->{utc_offset}; -
wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/Listing.pm
r296 r297 43 43 44 44 Based on the supplied criteria (but not using all of those used by 45 B<fetch_recently_changed_nodes>), find the oldest node from the recently45 B<fetch_recently_changed_nodes>), find the newest node from the recently 46 46 changed nodes set. Normally used for dating the whole of a Feed. 47 47 48 48 =cut 49 sub fetch_ oldest_for_recently_changed {49 sub fetch_newest_for_recently_changed { 50 50 my ($self, %args) = @_; 51 51 -
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};
