]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: last-modified time should be commiter, not author
[Gitweb] / gitweb.perl
index 78f54e712ce3f66ad6ebea3a73333aa9ed26495a8111a27f20437fca06992102..f33524d212b7d7db9fc912a85eedb47f807e6b240044c043ad6e301b271268cf 100755 (executable)
@@ -6016,7 +6016,7 @@ sub git_feed {
        }
        if (defined($commitlist[0])) {
                %latest_commit = %{$commitlist[0]};
-               %latest_date   = parse_date($latest_commit{'author_epoch'});
+               %latest_date   = parse_date($latest_commit{'committer_epoch'});
                print $cgi->header(
                        -type => $content_type,
                        -charset => 'utf-8',
@@ -6075,7 +6075,9 @@ XML
                print "<title>$title</title>\n" .
                      "<link>$alt_url</link>\n" .
                      "<description>$descr</description>\n" .
-                     "<language>en</language>\n";
+                     "<language>en</language>\n" .
+                     # project owner is responsible for 'editorial' content
+                     "<managingEditor>$owner</managingEditor>\n";
                if (defined $logo || defined $favicon) {
                        # prefer the logo to the favicon, since RSS
                        # doesn't allow both
@@ -6086,6 +6088,11 @@ XML
                              "<link>$alt_url</link>\n" .
                              "</image>\n";
                }
+               if (%latest_date) {
+                       print "<pubDate>$latest_date{'rfc2822'}</pubDate>\n";
+                       print "<lastBuildDate>$latest_date{'rfc2822'}</lastBuildDate>\n";
+               }
+               print "<generator>gitweb v.$version/$git_version</generator>\n";
        } elsif ($format eq 'atom') {
                print <<XML;
 <feed xmlns="http://www.w3.org/2005/Atom">
@@ -6112,6 +6119,7 @@ XML
                } else {
                        print "<updated>$latest_date{'iso-8601'}</updated>\n";
                }
+               print "<generator version='$version/$git_version'>gitweb</generator>\n";
        }
 
        # contents
This page took 0.222604 seconds and 4 git commands to generate.