forked from blallo/rss-bridge
[pull] date fallback for ATOM format
This commit is contained in:
parent
e9902e2391
commit
e81a19a04b
1 changed files with 5 additions and 1 deletions
|
@ -53,6 +53,10 @@ EOD;
|
|||
- <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 !!!" */
|
||||
$toReturn = '<?xml version="1.0" encoding="UTF-8"?>';
|
||||
$toReturn .= <<<EOD
|
||||
|
@ -60,7 +64,7 @@ EOD;
|
|||
|
||||
<title type="text">{$title}</title>
|
||||
<id>http{$https}://{$httpHost}{$httpInfo}/</id>
|
||||
<updated></updated>
|
||||
<updated>{$feedTimestamp}</updated>
|
||||
<link rel="alternate" type="text/html" href="{$uri}" />
|
||||
<link rel="self" href="http{$https}://{$httpHost}{$serverRequestUri}" />
|
||||
{$entries}
|
||||
|
|
Loading…
Reference in a new issue