ページの作成や編集にはユーザ登録が必要です。
RSSプラグインで出力する更新日がおかしい
- 投稿者: 紅猫
- カテゴリ: プラグイン
- 優先度: 重要
- 状態: リリース済
- 日時: 2004年09月25日 11時57分47秒
内容
RSSプラグインで出力する更新日が物理的な更新時刻になっています。論理的なものにすべきではないでしょうか。(とりあえず、以下は3.5.6のソースへのパッチですが、それ以前のものにも同じバグがあります)
RSSMaker.pm
--- RSSMaker.pm.org 2004-08-22 13:49:53.000000000 +0900 +++ RSSMaker.pm 2004-09-25 11:54:26.000000000 +0900 @@ -103,7 +103,7 @@ print RSS " <item>\n"; print RSS " <title>".Util::escapeHTML($page)."</title>\n"; print RSS " <link>$uri?page=".Util::url_encode($page)."</link>\n"; - print RSS " <description>".&format_date($wiki->get_last_modified($page))."</description>\n"; + print RSS " <description>".&format_date($wiki->get_last_modified2($page))."</description>\n"; print RSS " </item>\n"; $count++; }
RSSMaker10.pm
--- RSSMaker10.pm.org 2004-08-22 13:49:53.000000000 +0900 +++ RSSMaker10.pm 2004-09-25 11:54:37.000000000 +0900 @@ -144,7 +144,7 @@ my $subjects; my %item; $item{title} = escapeXML($page); - $item{date} = W3CDTF($wiki->get_last_modified($page), $ch{TZ}); + $item{date} = W3CDTF($wiki->get_last_modified2($page), $ch{TZ}); $item{desc} = escapeXML(get_headline($page_body)); $item{link} = escapeXML($uri . '?page=' . Util::url_encode($page));
コメント
- 仰る通りです。sage機能を実装した際の修正漏れと思います。上記の修正をCVSにコミットしました。 - たけぞう (2004年10月09日 13時20分38秒)
- 3.5.7正式版をリリースしました。 - たけぞう (2005年02月12日 00時05分16秒)
最終更新時間:2005年02月12日 00時05分16秒