mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
Fix #1577 incorrect datetime format in non-Korean locales
This commit is contained in:
parent
89bcdbb844
commit
6d9312e445
2 changed files with 12 additions and 12 deletions
|
|
@ -377,9 +377,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()
|
||||
|
|
@ -396,12 +396,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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue