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,