PHP 4에서 시간이 제대로 안 맞는 문제 해결

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3544 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2008-01-18 10:23:49 +00:00
parent 42f29415d6
commit a6a082dfce
2 changed files with 11 additions and 11 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<module version="0.11" category="service"> <module version="0.12" category="service">
<title xml:lang="ko">라이프팟 연동</title> <title xml:lang="ko">라이프팟 연동</title>
<title xml:lang="en">Lifepod</title> <title xml:lang="en">Lifepod</title>
<title xml:lang="jp">Lifepod連動</title> <title xml:lang="jp">Lifepod連動</title>

View file

@ -50,29 +50,29 @@
$cDay = Context::get('day'); $cDay = Context::get('day');
$calendars = array(); $calendars = array();
foreach($caladdresses as $key => $val) foreach($caladdresses as $key=>$val)
{ {
$page = $oLifepodModel->getPage($val, $cYear, $cMonth, $cDay); $page = $oLifepodModel->getPage($val, $cYear, $cMonth, $cDay);
foreach ($page->data as $key => $val) for($j=0;$j<count($page->data);$j++)
{ {
if($val->childNodes["date-start"]) $data = &$page->data[$j];
if($data->childNodes["date-start"])
{ {
$val->childNodes["date-start"]->body = $this->dateFormatChange($val->childNodes["date-start"]->body); $data->childNodes["date-start"]->body = $this->dateFormatChange($data->childNodes["date-start"]->body);
} }
if($val->childNodes["date-end"]) if($data->childNodes["date-end"])
{ {
$plus = 0; $plus = 0;
if($val->childNodes["type"]->body == "daylong") if($data->childNodes["type"]->body == "daylong")
$plus = -1; $plus = -1;
$val->childNodes["date-end"]->body = $this->dateFormatChange($val->childNodes["date-end"]->body, $plus); $data->childNodes["date-end"]->body = $this->dateFormatChange($data->childNodes["date-end"]->body, $plus);
} }
$val->childNodes["description"]->body = str_replace("\n", "<BR />", $val->childNodes["description"]->body); $data->childNodes["description"]->body = str_replace("\n", "<BR />", $data->childNodes["description"]->body);
} }
$calendars[] = $page; $calendars[] = $page;
} }
Context::set('calendars', $calendars); Context::set('calendars', $calendars);