mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
zdate()에서 잘못된 배열처리로 인한 오류 수정
This commit is contained in:
parent
9d3622dcde
commit
d5260bab0d
1 changed files with 3 additions and 3 deletions
|
|
@ -630,7 +630,7 @@ function zdate($str, $format = 'Y-m-d H:i:s', $conversion = TRUE)
|
|||
{
|
||||
$format = $convtable[$lang_type][$format];
|
||||
}
|
||||
elseif(isset($convtable[$convtable[$lang_type]][$format]))
|
||||
elseif(is_string($convtable[$lang_type]) && isset($convtable[$convtable[$lang_type]][$format]))
|
||||
{
|
||||
$format = $convtable[$convtable[$lang_type]][$format];
|
||||
}
|
||||
|
|
@ -643,8 +643,8 @@ function zdate($str, $format = 'Y-m-d H:i:s', $conversion = TRUE)
|
|||
// change day and am/pm for each language
|
||||
if(preg_match('/[MFAa]/', $format))
|
||||
{
|
||||
$unit_week = Context::getLang('unit_week');
|
||||
$unit_meridiem = Context::getLang('unit_meridiem');
|
||||
$unit_week = (Array)Context::getLang('unit_week');
|
||||
$unit_meridiem = (Array)Context::getLang('unit_meridiem');
|
||||
$string = str_replace(array('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'), $unit_week, $string);
|
||||
$string = str_replace(array('am', 'pm', 'AM', 'PM'), $unit_meridiem, $string);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue