Index: temp/trunk/html/rss/index.php
===================================================================
--- temp/trunk/html/rss/index.php	(revision 6478)
+++ temp/trunk/html/rss/index.php	(revision 7257)
@@ -57,10 +57,20 @@
 	$col .= "     ,news_title ";							//¿·Ãå¾ðÊó¥¿¥¤¥È¥ë
 	$col .= "     ,news_comment ";							//¿·Ãå¾ðÊóËÜÊ¸
-	$col .= "     ,to_char(news_date, 'YYYY') AS YEAR ";	//ÆüÉÕ(Ç¯)
-	$col .= "     ,to_char(news_date, 'MM') AS MONTH ";		//ÆüÉÕ(·î)
-	$col .= "     ,to_char(news_date, 'DD') AS DAY ";		//ÆüÉÕ(Æü)
-	$col .= "     ,to_char(news_date, 'HH24') AS HOUR ";	//ÆüÉÕ(»þ´Ö)
-	$col .= "     ,to_char(news_date, 'MI') AS MINUTE ";	//ÆüÉÕ(Ê¬)
-	$col .= "     ,to_char(news_date, 'SS') AS SECOND ";	//ÆüÉÕ(ÉÃ)
+	
+	if (DB_TYPE == "pgsql") {
+		$col .= "     ,to_char(news_date, 'YYYY') AS YEAR ";	//ÆüÉÕ(Ç¯)
+		$col .= "     ,to_char(news_date, 'MM') AS MONTH ";		//ÆüÉÕ(·î)
+		$col .= "     ,to_char(news_date, 'DD') AS DAY ";		//ÆüÉÕ(Æü)
+		$col .= "     ,to_char(news_date, 'HH24') AS HOUR ";	//ÆüÉÕ(»þ´Ö)
+		$col .= "     ,to_char(news_date, 'MI') AS MINUTE ";	//ÆüÉÕ(Ê¬)
+		$col .= "     ,to_char(news_date, 'SS') AS SECOND ";	//ÆüÉÕ(ÉÃ)
+	}else if (DB_TYPE == "mysql") {
+		$col .= "     ,DATE_FORMAT(news_date, '%Y') AS YEAR ";		//ÆüÉÕ(Ç¯)
+		$col .= "     ,DATE_FORMAT(news_date, '%m') AS MONTH ";		//ÆüÉÕ(·î)
+		$col .= "     ,DATE_FORMAT(news_date, '%d') AS DAY ";		//ÆüÉÕ(Æü)
+		$col .= "     ,DATE_FORMAT(news_date, '%H') AS HOUR ";		//ÆüÉÕ(»þ´Ö)
+		$col .= "     ,DATE_FORMAT(news_date, '%i') AS MINUTE ";	//ÆüÉÕ(Ê¬)
+		$col .= "     ,DATE_FORMAT(news_date, '%s') AS SECOND ";	//ÆüÉÕ(ÉÃ)
+	}
 	$col .= "     ,news_url ";								//¿·Ãå¾ðÊóURL
 	$col .= "     ,news_select ";							//¿·Ãå¾ðÊó¤Î¶èÊ¬(1:URL¡¢2:ËÜÊ¸)
