의도에 맞도록 getRegdateGM(), getUpdateGM() 개선

RSS Feed의 날짜 표시를 GMT+0으로 변경
This commit is contained in:
conory 2017-09-06 23:38:42 +09:00
parent d599f1e4e9
commit 1d8d685fc1
7 changed files with 29 additions and 29 deletions

View file

@ -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()