From 7e262bf62ae870b78d7730b50e05ff9066fb4497 Mon Sep 17 00:00:00 2001 From: haneul Date: Tue, 11 Dec 2007 03:32:05 +0000 Subject: [PATCH] ticket:328 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3298 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/lifepod/conf/info.xml | 2 +- modules/lifepod/lifepod.view.php | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/lifepod/conf/info.xml b/modules/lifepod/conf/info.xml index 390c7b35e..bd27922e1 100644 --- a/modules/lifepod/conf/info.xml +++ b/modules/lifepod/conf/info.xml @@ -1,5 +1,5 @@ - + 라이프팟 연동 Lifepod diff --git a/modules/lifepod/lifepod.view.php b/modules/lifepod/lifepod.view.php index b75fc9624..e711c6245 100644 --- a/modules/lifepod/lifepod.view.php +++ b/modules/lifepod/lifepod.view.php @@ -27,18 +27,20 @@ $this->setTemplatePath($template_path); } + /** + * @brief Reformatting date data from Lifepod API into data type compatible to Lifepod UI + **/ function dateFormatChange($dates, $plus = 0) { - $dates = str_replace( "T", " ", $dates); - $dates = str_replace( "Z", "+0", $dates); + $dates = ereg_replace("(\d\d\d\d)(\d\d)(\d\d)T(\d\d)(\d\d)(\d\d)Z", "\\1-\\2-\\3 \\4:\\5:\\6+0", $dates); $dates = date("Y-m-d H:i:s", strtotime($dates) + $plus); return $dates; } /** - * @brief 달력 + * @brief Displaying Calendar **/ function dispLifepodContent() { - // 권한 체크 + // check permission if(!$this->grant->view) return $this->dispLifepodMessage('msg_not_permitted'); $oLifepodModel = &getModel('lifepod'); @@ -47,7 +49,6 @@ $cMonth = Context::get('month'); $cDay = Context::get('day'); - // 특정 페이지 선택시 페이지 정보 가져오기 $page = $oLifepodModel->getPage($cYear, $cMonth, $cDay); foreach ($page->data as $key => $val) {