mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
#90. RSS출력시 pubDate 포맷 오류 수정. (venister님 의견)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2379 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
03b29f9a30
commit
86c7ce821a
2 changed files with 13 additions and 12 deletions
|
|
@ -180,17 +180,18 @@
|
|||
}
|
||||
|
||||
function getRegdateTime() {
|
||||
$year = substr($this->get('regdate'),0,4);
|
||||
$month = substr($this->get('regdate'),4,2);
|
||||
$day = substr($this->get('regdate'),6,2);
|
||||
$hour = substr($this->get('regdate'),8,2);
|
||||
$min = substr($this->get('regdate'),10,2);
|
||||
$sec = substr($this->get('regdate'),12,2);
|
||||
$regdate = $this->get('regdate');
|
||||
$year = substr($regdate,0,4);
|
||||
$month = substr($regdate,4,2);
|
||||
$day = substr($regdate,6,2);
|
||||
$hour = substr($regdate,8,2);
|
||||
$min = substr($regdate,10,2);
|
||||
$sec = substr($regdate,12,2);
|
||||
return mktime($hour,$min,$sec,$month,$day,$year);
|
||||
}
|
||||
|
||||
function getRegdateGM() {
|
||||
return gmdate("D, d M Y H:i:s", $this->getRegdateTime());
|
||||
return $this->getRegdate('D, d M Y H:i:s').' '.$GLOBALS['_time_zone'];
|
||||
}
|
||||
|
||||
function getUpdate($format = 'Y.m.d H:i:s') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue