1
0
Fork 0
forked from blallo/rss-bridge

[pull] date fallback for ATOM format

This commit is contained in:
Mitsukarenai 2014-05-14 14:27:57 +02:00
parent e9902e2391
commit e81a19a04b

View file

@ -53,6 +53,10 @@ EOD;
- <content type="html"> : RFC look with xhtml, keep this in spite of ? - <content type="html"> : RFC look with xhtml, keep this in spite of ?
*/ */
// #### TEMPORARY FIX ###
$feedTimestamp = date(DATE_ATOM, time());
// ################
/* Data are prepared, now let's begin the "MAGIE !!!" */ /* Data are prepared, now let's begin the "MAGIE !!!" */
$toReturn = '<?xml version="1.0" encoding="UTF-8"?>'; $toReturn = '<?xml version="1.0" encoding="UTF-8"?>';
$toReturn .= <<<EOD $toReturn .= <<<EOD
@ -60,7 +64,7 @@ EOD;
<title type="text">{$title}</title> <title type="text">{$title}</title>
<id>http{$https}://{$httpHost}{$httpInfo}/</id> <id>http{$https}://{$httpHost}{$httpInfo}/</id>
<updated></updated> <updated>{$feedTimestamp}</updated>
<link rel="alternate" type="text/html" href="{$uri}" /> <link rel="alternate" type="text/html" href="{$uri}" />
<link rel="self" href="http{$https}://{$httpHost}{$serverRequestUri}" /> <link rel="self" href="http{$https}://{$httpHost}{$serverRequestUri}" />
{$entries} {$entries}