Merge #1656 Fix #1577 서양 언어 사용시 getRegdateDT() 등이 잘못된 포맷을 반환 by kijin

* pr/1656:
  Fix #1577 incorrect datetime format in non-Korean locales
This commit is contained in:
Kijin Sung 2015-10-08 15:07:11 +09:00
commit 9bc6aa4fdc
2 changed files with 12 additions and 12 deletions

View file

@ -380,9 +380,9 @@ class commentItem extends Object
return $content;
}
function getRegdate($format = 'Y.m.d H:i:s')
function getRegdate($format = 'Y.m.d H:i:s', $conversion = TRUE)
{
return zdate($this->get('regdate'), $format);
return zdate($this->get('regdate'), $format, $conversion);
}
function getRegdateTime()
@ -399,12 +399,12 @@ class commentItem extends Object
function getRegdateGM()
{
return $this->getRegdate('D, d M Y H:i:s') . ' ' . $GLOBALS['_time_zone'];
return $this->getRegdate('D, d M Y H:i:s', FALSE) . ' ' . $GLOBALS['_time_zone'];
}
function getUpdate($format = 'Y.m.d H:i:s')
function getUpdate($format = 'Y.m.d H:i:s', $conversion = TRUE)
{
return zdate($this->get('last_update'), $format);
return zdate($this->get('last_update'), $format, $conversion);
}
function getPermanentUrl()