mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-18 10:49:54 +09:00
binamu님 테스트
-이 줄 이하는 자동으로 제거됩니다-- M lifepod.view.php git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3308 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7e5e83dae1
commit
00a7801078
1 changed files with 11 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue