From 86c7ce821ac1a3297dcb2a393e7ea31bf2adc42b Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 23 Aug 2007 02:29:31 +0000 Subject: [PATCH] =?UTF-8?q?#90.=20RSS=EC=B6=9C=EB=A0=A5=EC=8B=9C=20pubDate?= =?UTF-8?q?=20=ED=8F=AC=EB=A7=B7=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= =?UTF-8?q?.=20(venister=EB=8B=98=20=EC=9D=98=EA=B2=AC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2379 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/document/document.item.php | 15 ++++++++------- modules/rss/rss.view.php | 10 +++++----- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/modules/document/document.item.php b/modules/document/document.item.php index a00bfd236..6f6133358 100644 --- a/modules/document/document.item.php +++ b/modules/document/document.item.php @@ -180,17 +180,18 @@ } function getRegdateTime() { - $year = substr($this->get('regdate'),0,4); - $month = substr($this->get('regdate'),4,2); - $day = substr($this->get('regdate'),6,2); - $hour = substr($this->get('regdate'),8,2); - $min = substr($this->get('regdate'),10,2); - $sec = substr($this->get('regdate'),12,2); + $regdate = $this->get('regdate'); + $year = substr($regdate,0,4); + $month = substr($regdate,4,2); + $day = substr($regdate,6,2); + $hour = substr($regdate,8,2); + $min = substr($regdate,10,2); + $sec = substr($regdate,12,2); return mktime($hour,$min,$sec,$month,$day,$year); } function getRegdateGM() { - return gmdate("D, d M Y H:i:s", $this->getRegdateTime()); + return $this->getRegdate('D, d M Y H:i:s').' '.$GLOBALS['_time_zone']; } function getUpdate($format = 'Y.m.d H:i:s') { diff --git a/modules/rss/rss.view.php b/modules/rss/rss.view.php index 66d0b480b..70c1f9e03 100644 --- a/modules/rss/rss.view.php +++ b/modules/rss/rss.view.php @@ -28,8 +28,8 @@ $page = (int)Context::get('page'); ///< 페이지, 없으면 1 if(!$page) $page = 1; - $list_count = (int)Context::get('list_count'); ///< 목록 갯수, 기본 20, 최고 100개 - if(!$list_count|| $list_count>100) $list_count = 20; + $list_count = (int)Context::get('list_count'); ///< 목록 갯수, 기본 10, 최고 100개 + if(!$list_count|| $list_count>100) $list_count = 10; $start_date = Context::get('start_date'); ///< 시작 일자, 없으면 무시 if(strlen($start_date)!=14 || !ereg("^([0-9]){14}$", $start_date) ) unset($start_date); @@ -86,8 +86,8 @@ if($start_date) $args->start_date = $start_date; if($end_date) $args->end_date = $end_date; - $args->sort_index = 'last_update'; - $args->order_type = 'desc'; + $args->sort_index = 'update_order'; + $args->order_type = 'asc'; // 대상 문서들을 가져옴 $oDocumentModel = &getModel('document'); @@ -104,7 +104,7 @@ } $info->total_count = $output->total_count; $info->total_page = $output->total_page; - $info->date = gmdate("D, d M Y H:i:s"); + $info->date = date("D, d M Y H:i:s").' '.$GLOBALS['_time_zone']; $info->language = Context::getLangType(); // RSS 출력물에서 사용될 변수 세팅