From 00a780107899557bc711902a22cfb41683020040 Mon Sep 17 00:00:00 2001 From: haneul Date: Tue, 11 Dec 2007 13:00:58 +0000 Subject: [PATCH] =?UTF-8?q?binamu=EB=8B=98=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=20-=EC=9D=B4=20=EC=A4=84=20=EC=9D=B4=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=EC=9E=90=EB=8F=99=EC=9C=BC=EB=A1=9C=20=EC=A0=9C=EA=B1=B0?= =?UTF-8?q?=EB=90=A9=EB=8B=88=EB=8B=A4--?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit M lifepod.view.php git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3308 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/lifepod/lifepod.view.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/modules/lifepod/lifepod.view.php b/modules/lifepod/lifepod.view.php index e711c6245..c67b4b855 100644 --- a/modules/lifepod/lifepod.view.php +++ b/modules/lifepod/lifepod.view.php @@ -31,7 +31,7 @@ * @brief Reformatting date data from Lifepod API into data type compatible to Lifepod UI **/ function dateFormatChange($dates, $plus = 0) { - $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 = sprintf("%s-%s-%s %s:%s:%s+0", substr($dates,0,4), substr($dates,4,2), substr($dates,6,2), substr($dates,9,2), substr($dates,11,2), substr($dates,13,2)); $dates = date("Y-m-d H:i:s", strtotime($dates) + $plus); return $dates; } @@ -44,7 +44,16 @@ if(!$this->grant->view) return $this->dispLifepodMessage('msg_not_permitted'); $oLifepodModel = &getModel('lifepod'); - $oLifepodModel->setInfo($this->module_info->calendar_address); + + Context::get('member_srl', $this->member_srl); + if($this->member_srl) + { + $args->member_srl = $this->member_srl; + } + else + { + $oLifepodModel->setInfo($this->module_info->calendar_address); + } $cYear = Context::get('year'); $cMonth = Context::get('month'); $cDay = Context::get('day');