mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 20:12:14 +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->description = $obj->description ?: $info->description;
|
||||||
$info->language = Context::getLangType();
|
$info->language = Context::getLangType();
|
||||||
$info->site_url = Context::getRequestUri();
|
$info->site_url = Context::getRequestUri();
|
||||||
$info->date_r = gmdate('r');
|
$info->date_r = date('r');
|
||||||
$info->date_c = gmdate('c');
|
$info->date_c = date('c');
|
||||||
$info->image = $config->image ? Context::getRequestUri() . $config->image : '';
|
$info->image = $config->image ? Context::getRequestUri() . $config->image : '';
|
||||||
getController('module')->replaceDefinedLangCode($info->title);
|
getController('module')->replaceDefinedLangCode($info->title);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@
|
||||||
<link rel="alternate" type="text/html" href="{$oDocument->getPermanentUrl()}"/>
|
<link rel="alternate" type="text/html" href="{$oDocument->getPermanentUrl()}"/>
|
||||||
<link cond="$oDocument->allowComment()" rel="replies" type="text/html" href="{$oDocument->getPermanentUrl()}#comment"/>
|
<link cond="$oDocument->allowComment()" rel="replies" type="text/html" href="{$oDocument->getPermanentUrl()}#comment"/>
|
||||||
<id>{$oDocument->getPermanentUrl()}</id>
|
<id>{$oDocument->getPermanentUrl()}</id>
|
||||||
<published>{$oDocument->getRegdateGM('c')}</published>
|
<published>{date('c', ztime($oDocument->get('regdate')))}</published>
|
||||||
<updated>{$oDocument->getUpdateGM('c')}</updated>
|
<updated>{date('c', ztime($oDocument->get('last_update')))}</updated>
|
||||||
<author>
|
<author>
|
||||||
<name>{$oDocument->getNickName()}</name>
|
<name>{$oDocument->getNickName()}</name>
|
||||||
</author>
|
</author>
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,6 @@
|
||||||
<link>{$oDocument->getPermanentUrl()}</link>
|
<link>{$oDocument->getPermanentUrl()}</link>
|
||||||
<description>{$oDocument->getSummary(400)|escape}</description>
|
<description>{$oDocument->getSummary(400)|escape}</description>
|
||||||
<dc:creator>{$oDocument->getNickName()}</dc:creator>
|
<dc:creator>{$oDocument->getNickName()}</dc:creator>
|
||||||
<dc:date>{$oDocument->getRegdateGM('c')}</dc:date>
|
<dc:date>{date('c', ztime($oDocument->get('regdate')))}</dc:date>
|
||||||
</item>
|
</item>
|
||||||
</rdf:RDF>
|
</rdf:RDF>
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
<dc:creator>{$oDocument->getNickName()}</dc:creator>
|
<dc:creator>{$oDocument->getNickName()}</dc:creator>
|
||||||
<guid isPermaLink="true">{$oDocument->getPermanentUrl()}</guid>
|
<guid isPermaLink="true">{$oDocument->getPermanentUrl()}</guid>
|
||||||
<comments cond="$oDocument->allowComment()">{$oDocument->getPermanentUrl()}#comment</comments>
|
<comments cond="$oDocument->allowComment()">{$oDocument->getPermanentUrl()}#comment</comments>
|
||||||
<pubDate>{$oDocument->getRegdateGM('r')}</pubDate>
|
<pubDate>{date('r', ztime($oDocument->get('regdate')))}</pubDate>
|
||||||
</item>
|
</item>
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,8 @@
|
||||||
<tags>{$oDocument->get('tags')}</tags>
|
<tags>{$oDocument->get('tags')}</tags>
|
||||||
<comment_count>{$oDocument->getCommentCount()}</comment_count>
|
<comment_count>{$oDocument->getCommentCount()}</comment_count>
|
||||||
<trackback_count>{$oDocument->getTrackbackCount()}</trackback_count>
|
<trackback_count>{$oDocument->getTrackbackCount()}</trackback_count>
|
||||||
<pubDate>{$oDocument->getRegdateGM('r')}</pubDate>
|
<pubDate>{date('r', ztime($oDocument->get('regdate')))}</pubDate>
|
||||||
<upDate>{$oDocument->getUpdateGM('r')}</upDate>
|
<upDate>{date('r', ztime($oDocument->get('last_update')))}</upDate>
|
||||||
</item>
|
</item>
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue