<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>最优良人 &#187; date</title>
	<atom:link href="http://www.zui88.com/view-tag/date/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zui88.com/blog</link>
	<description>中山php&#124;最优网络</description>
	<lastBuildDate>Mon, 13 May 2013 04:56:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>php date函数的时区问题，输出时间有误</title>
		<link>http://www.zui88.com/blog/view-372.html</link>
		<comments>http://www.zui88.com/blog/view-372.html#comments</comments>
		<pubDate>Sat, 02 Jun 2012 02:16:24 +0000</pubDate>
		<dc:creator>lin</dc:creator>
				<category><![CDATA[后端程序]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.zui88.com/blog/?p=372</guid>
		<description><![CDATA[问题：echo date('o-m-j H:i'); 输出结果与本地时间相差8小时。 原因：时区未正确设置。 两种解决方法: 1.加入date_default_timezone_set('Asia/Shanghai'); 2. 修改php.ini [Date] ; Defines the default timezone used by the date functions date.timezone = PRC 注:PRC为中化人民共和国]]></description>
			<content:encoded><![CDATA[<p>问题：echo date('o-m-j H:i'); 输出结果与本地时间相差8小时。<br />
原因：时区未正确设置。<br />
两种解决方法:</p>
<p>1.加入date_default_timezone_set('Asia/Shanghai');<br />
2. 修改php.ini<br />
<span style="font-family: Courier New;"> [Date]<br />
; Defines the default timezone used by the date functions<br />
date.timezone = PRC <em>注:PRC为中化人民共和国</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zui88.com/blog/view-372.html/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
