mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-05 04:29:09 -04:00
Update date format to make it RFC822 compliant. Thanks to moullas. Fixes #1798.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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[
|
||||
|
||||
Reference in New Issue
Block a user