mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
의도에 맞도록 getRegdateGM(), getUpdateGM() 개선
RSS Feed의 날짜 표시를 GMT+0으로 변경
This commit is contained in:
parent
d599f1e4e9
commit
1d8d685fc1
7 changed files with 29 additions and 29 deletions
|
|
@ -174,13 +174,13 @@ class rssView extends rss
|
|||
}
|
||||
|
||||
$info->id = $channel_url;
|
||||
$info->title = $obj->title ?: $info->title;
|
||||
$info->feed_title = $config->feed_title;
|
||||
$info->title = $obj->title ?: $info->title;
|
||||
$info->description = $obj->description ?: $info->description;
|
||||
$info->language = Context::getLangType();
|
||||
$info->site_url = Context::getRequestUri();
|
||||
$info->dateGM = Rhymix\Framework\DateTime::formatTimestampForCurrentUser('r');
|
||||
$info->dateDT = Rhymix\Framework\DateTime::formatTimestampForCurrentUser('c');
|
||||
$info->date_r = gmdate('r');
|
||||
$info->date_c = gmdate('c');
|
||||
$info->image = $config->image ? Context::getRequestUri() . $config->image : '';
|
||||
getController('module')->replaceDefinedLangCode($info->title);
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<subtitle cond="$info->description">{$info->description}</subtitle>
|
||||
<link rel="alternate" type="text/html" hreflang="{$info->language}" href="{$info->link}"/>
|
||||
<link rel="self" type="application/atom+xml" href="{$info->id}"/>
|
||||
<updated>{$info->dateDT}</updated>
|
||||
<updated>{$info->date_c}</updated>
|
||||
<id>{$info->id}</id>
|
||||
<generator>Rhymix</generator>
|
||||
<rights cond="$info->feed_copyright">{$info->feed_copyright}</rights>
|
||||
|
|
@ -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->getRegdateDT()}</published>
|
||||
<updated>{$oDocument->getUpdateDT()}</updated>
|
||||
<published>{$oDocument->getRegdateGM('c')}</published>
|
||||
<updated>{$oDocument->getUpdateGM('c')}</updated>
|
||||
<author>
|
||||
<name>{$oDocument->getNickName()}</name>
|
||||
</author>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<link>{$info->link}</link>
|
||||
<description>{$info->description}</description>
|
||||
<dc:language>{$info->language}</dc:language>
|
||||
<dc:date>{$info->dateDT}</dc:date>
|
||||
<dc:date>{$info->date_c}</dc:date>
|
||||
<!--@if($info->feed_copyright)-->
|
||||
<dc:rights>{$info->feed_copyright}</dc:rights>
|
||||
<!--@end-->
|
||||
|
|
@ -30,6 +30,6 @@
|
|||
<link>{$oDocument->getPermanentUrl()}</link>
|
||||
<description>{$oDocument->getSummary(400)|escape}</description>
|
||||
<dc:creator>{$oDocument->getNickName()}</dc:creator>
|
||||
<dc:date>{$oDocument->getRegdateDT()}</dc:date>
|
||||
<dc:date>{$oDocument->getRegdateGM('c')}</dc:date>
|
||||
</item>
|
||||
</rdf:RDF>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
<description>{$info->description}</description>
|
||||
<atom:link href="{$info->id}" rel="self" type="application/rss+xml" />
|
||||
<language>{$info->language}</language>
|
||||
<pubDate>{$info->dateGM}</pubDate>
|
||||
<pubDate>{$info->date_r}</pubDate>
|
||||
<generator>Rhymix</generator>
|
||||
<copyright cond="$info->feed_copyright">{$info->feed_copyright}</copyright>
|
||||
<image cond="$info->image">
|
||||
|
|
@ -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()}</pubDate>
|
||||
<pubDate>{$oDocument->getRegdateGM('r')}</pubDate>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<link>{$info->link}</link>
|
||||
<description>{$info->description}</description>
|
||||
<language>{$info->language}</language>
|
||||
<pubDate>{$info->dateGM}</pubDate>
|
||||
<pubDate>{$info->date_r}</pubDate>
|
||||
<totalCount>{$info->total_count}</totalCount>
|
||||
<totalPage>{$info->total_page}</totalPage>
|
||||
<item loop="$document_list=>$oDocument">
|
||||
|
|
@ -22,8 +22,8 @@
|
|||
<tags>{$oDocument->get('tags')}</tags>
|
||||
<comment_count>{$oDocument->getCommentCount()}</comment_count>
|
||||
<trackback_count>{$oDocument->getTrackbackCount()}</trackback_count>
|
||||
<pubDate>{$oDocument->getRegdateGM()}</pubDate>
|
||||
<upDate>{$oDocument->getUpdateGM()}</upDate>
|
||||
<pubDate>{$oDocument->getRegdateGM('r')}</pubDate>
|
||||
<upDate>{$oDocument->getUpdateGM('r')}</upDate>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue