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