From: Jakub Narebski Date: Wed, 04 Feb 2009 23:24:43 GMT Subject: Re: [PATCHv2 4/6] gitweb: rss channel date Message-ID: <200902050024.43634.jnareb@gmail.com> In-Reply-To: <1232970616-21167-5-git-send-email-giuseppe.bilotta@gmail.com> On Mon, 26 Jan 2009, Giuseppe Bilotta wrote: > The RSS 2.0 specifications defines not one but _two_ dates for its > channel element! Woohoo! Luckily, it seems that consensus seems to be > that if both are present they should be equal, except for some very > obscure and discouraged cases. Since lastBuildDate would make more sense > for us and pubDate seems to be the most commonly used, we defined both > and make them equal. Perhaps it would make sense to quote RSS 2.0 standard format here in the commit message, e.g.: pubDate The publication date for the content in the channel. lastBuildDate The last time the content of the channel changed. > > Signed-off-by: Giuseppe Bilotta > --- > gitweb/gitweb.perl | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl > index cc6d0fb..756868a 100755 > --- a/gitweb/gitweb.perl > +++ b/gitweb/gitweb.perl > @@ -6087,6 +6087,10 @@ XML > "$alt_url\n" . > "\n"; > } > + if (%latest_date) { > + print "$latest_date{'rfc2822'}\n"; > + print "$latest_date{'rfc2822'}\n"; > + } I think it is good approximation of intended meaning of those two elements. > print "gitweb v.$version/$git_version\n"; > } elsif ($format eq 'atom') { > print < -- > 1.5.6.5 > > -- Jakub Narebski Poland