mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 15:52:17 +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
|
|
@ -468,14 +468,14 @@ class commentItem extends Object
|
|||
return ztime($this->get('regdate'));
|
||||
}
|
||||
|
||||
function getRegdateGM()
|
||||
function getRegdateGM($format = 'r')
|
||||
{
|
||||
return gmdate('r', ztime($this->get('regdate')));
|
||||
return gmdate($format, $this->getRegdateTime());
|
||||
}
|
||||
|
||||
function getRegdateDT()
|
||||
function getRegdateDT($format = 'c')
|
||||
{
|
||||
return zdate($this->get('regdate'), 'c', false);
|
||||
return Rhymix\Framework\DateTime::formatTimestampForCurrentUser($format, $this->getRegdateTime());
|
||||
}
|
||||
|
||||
function getUpdate($format = 'Y.m.d H:i:s', $conversion = true)
|
||||
|
|
@ -488,14 +488,14 @@ class commentItem extends Object
|
|||
return ztime($this->get('last_update'));
|
||||
}
|
||||
|
||||
function getUpdateGM()
|
||||
function getUpdateGM($format = 'r')
|
||||
{
|
||||
return gmdate('r', ztime($this->get('last_update')));
|
||||
return gmdate($format, $this->getUpdateTime());
|
||||
}
|
||||
|
||||
function getUpdateDT()
|
||||
function getUpdateDT($format = 'c')
|
||||
{
|
||||
return zdate($this->get('last_update'), 'c', false);
|
||||
return Rhymix\Framework\DateTime::formatTimestampForCurrentUser($format, $this->getUpdateTime());
|
||||
}
|
||||
|
||||
function getPermanentUrl()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue