mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #1158 use internal timezone in RSS output
This commit is contained in:
parent
b72c5edcec
commit
329ec0cfd4
5 changed files with 8 additions and 8 deletions
|
|
@ -179,8 +179,8 @@ class rssView extends rss
|
|||
$info->description = $obj->description ?: $info->description;
|
||||
$info->language = Context::getLangType();
|
||||
$info->site_url = Context::getRequestUri();
|
||||
$info->date_r = gmdate('r');
|
||||
$info->date_c = gmdate('c');
|
||||
$info->date_r = date('r');
|
||||
$info->date_c = date('c');
|
||||
$info->image = $config->image ? Context::getRequestUri() . $config->image : '';
|
||||
getController('module')->replaceDefinedLangCode($info->title);
|
||||
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
<link rel="alternate" type="text/html" href="{$oDocument->getPermanentUrl()}"/>
|
||||
<link cond="$oDocument->allowComment()" rel="replies" type="text/html" href="{$oDocument->getPermanentUrl()}#comment"/>
|
||||
<id>{$oDocument->getPermanentUrl()}</id>
|
||||
<published>{$oDocument->getRegdateGM('c')}</published>
|
||||
<updated>{$oDocument->getUpdateGM('c')}</updated>
|
||||
<published>{date('c', ztime($oDocument->get('regdate')))}</published>
|
||||
<updated>{date('c', ztime($oDocument->get('last_update')))}</updated>
|
||||
<author>
|
||||
<name>{$oDocument->getNickName()}</name>
|
||||
</author>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,6 @@
|
|||
<link>{$oDocument->getPermanentUrl()}</link>
|
||||
<description>{$oDocument->getSummary(400)|escape}</description>
|
||||
<dc:creator>{$oDocument->getNickName()}</dc:creator>
|
||||
<dc:date>{$oDocument->getRegdateGM('c')}</dc:date>
|
||||
<dc:date>{date('c', ztime($oDocument->get('regdate')))}</dc:date>
|
||||
</item>
|
||||
</rdf:RDF>
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
<dc:creator>{$oDocument->getNickName()}</dc:creator>
|
||||
<guid isPermaLink="true">{$oDocument->getPermanentUrl()}</guid>
|
||||
<comments cond="$oDocument->allowComment()">{$oDocument->getPermanentUrl()}#comment</comments>
|
||||
<pubDate>{$oDocument->getRegdateGM('r')}</pubDate>
|
||||
<pubDate>{date('r', ztime($oDocument->get('regdate')))}</pubDate>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
<tags>{$oDocument->get('tags')}</tags>
|
||||
<comment_count>{$oDocument->getCommentCount()}</comment_count>
|
||||
<trackback_count>{$oDocument->getTrackbackCount()}</trackback_count>
|
||||
<pubDate>{$oDocument->getRegdateGM('r')}</pubDate>
|
||||
<upDate>{$oDocument->getUpdateGM('r')}</upDate>
|
||||
<pubDate>{date('r', ztime($oDocument->get('regdate')))}</pubDate>
|
||||
<upDate>{date('r', ztime($oDocument->get('last_update')))}</upDate>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue