Update date format to make it RFC822 compliant. Thanks to moullas. Fixes #1798.

This commit is contained in:
Bharat Mediratta
2012-05-07 13:29:52 -07:00
parent ce3530100f
commit 6effd5f75e
3 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ class comment_rss_Core {
foreach ($comments->find_all($limit, $offset) as $comment) {
$item = $comment->item();
$feed->comments[] = new ArrayObject(
array("pub_date" => date("D, d M Y H:i:s T", $comment->created),
array("pub_date" => date("D, d M Y H:i:s O", $comment->created),
"text" => nl2br(html::purify($comment->text)),
"thumb_url" => $item->thumb_url(),
"thumb_height" => $item->thumb_height,

View File

@@ -50,7 +50,7 @@ class Rss_Controller extends Controller {
unset($feed->view);
$view->feed = $feed;
$view->pub_date = date("D, d M Y H:i:s T");
$view->pub_date = date("D, d M Y H:i:s O");
$feed->uri = url::abs_site(url::merge($_GET));
if ($page > 1) {

View File

@@ -25,7 +25,7 @@
<title><?= html::purify($item->title) ?></title>
<link><?= url::abs_site("{$item->type}s/{$item->id}") ?></link>
<guid isPermaLink="true"><?= url::abs_site("{$item->type}s/{$item->id}") ?></guid>
<pubDate><?= date("D, d M Y H:i:s T", $item->created); ?></pubDate>
<pubDate><?= date("D, d M Y H:i:s O", $item->created); ?></pubDate>
<description><?= html::purify($item->description) ?></description>
<content:encoded>
<![CDATA[