mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
* pr/1656: Fix #1577 incorrect datetime format in non-Korean locales
This commit is contained in:
commit
9bc6aa4fdc
2 changed files with 12 additions and 12 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -557,9 +557,9 @@ class documentItem 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()
|
||||
|
|
@ -576,17 +576,17 @@ class documentItem 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 getRegdateDT()
|
||||
{
|
||||
return $this->getRegdate('Y-m-d').'T'.$this->getRegdate('H:i:s').substr($GLOBALS['_time_zone'],0,3).':'.substr($GLOBALS['_time_zone'],3,2);
|
||||
return $this->getRegdate('Y-m-d', FALSE).'T'.$this->getRegdate('H:i:s', FALSE).substr($GLOBALS['_time_zone'],0,3).':'.substr($GLOBALS['_time_zone'],3,2);
|
||||
}
|
||||
|
||||
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 getUpdateTime()
|
||||
|
|
@ -607,7 +607,7 @@ class documentItem extends Object
|
|||
|
||||
function getUpdateDT()
|
||||
{
|
||||
return $this->getUpdate('Y-m-d').'T'.$this->getUpdate('H:i:s').substr($GLOBALS['_time_zone'],0,3).':'.substr($GLOBALS['_time_zone'],3,2);
|
||||
return $this->getUpdate('Y-m-d', FALSE).'T'.$this->getUpdate('H:i:s', FALSE).substr($GLOBALS['_time_zone'],0,3).':'.substr($GLOBALS['_time_zone'],3,2);
|
||||
}
|
||||
|
||||
function getPermanentUrl()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue