<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: PHP Local Time &#8211; Your timezone</title>
	<atom:link href="http://imblogginghere.com/techblog/200912/webdesign/php-local-time-your-timezone/feed/" rel="self" type="application/rss+xml" />
	<link>http://imblogginghere.com/techblog/200912/webdesign/php-local-time-your-timezone/</link>
	<description>» Smart Phones, Web Design, Google or whatever</description>
	<lastBuildDate>Wed, 12 May 2010 07:13:06 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: admin</title>
		<link>http://imblogginghere.com/techblog/200912/webdesign/php-local-time-your-timezone/comment-page-1/#comment-3204</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 16 Dec 2009 03:21:55 +0000</pubDate>
		<guid isPermaLink="false">http://imblogginghere.com/techblog/?p=867#comment-3204</guid>
		<description>Good point @rana... the code above is set to the time zone of the server in use. The offset is adjusted by comparing the time displayed (using the offset of zero) to the time you want to appear. I live and work in the Eastern Standard Time (EST, same as New York, USA) and EST is the time zone for the sites I usually build. As mentioned in the post above I know it works on at least the one implementation I&#039;ve used because the time was &quot;set&quot; the that day I wrote the post. 

This is the code I ended up with this to get EST:

&lt;blockquote&gt;
    &lt;?
    $mytime = time();

    offset=1;
    $mytime = $mytime + ($offset * 60 * 60);
    echo $mytime;
    ?&gt;
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>Good point @rana... the code above is set to the time zone of the server in use. The offset is adjusted by comparing the time displayed (using the offset of zero) to the time you want to appear. I live and work in the Eastern Standard Time (EST, same as New York, USA) and EST is the time zone for the sites I usually build. As mentioned in the post above I know it works on at least the one implementation I've used because the time was "set" the that day I wrote the post. </p>
<p>This is the code I ended up with this to get EST:</p>
<blockquote><p>
    < ?<br />
    $mytime = time();</p>
<p>    offset=1;<br />
    $mytime = $mytime + ($offset * 60 * 60);<br />
    echo $mytime;<br />
    ?>
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: rana</title>
		<link>http://imblogginghere.com/techblog/200912/webdesign/php-local-time-your-timezone/comment-page-1/#comment-3187</link>
		<dc:creator>rana</dc:creator>
		<pubDate>Mon, 14 Dec 2009 17:14:33 +0000</pubDate>
		<guid isPermaLink="false">http://imblogginghere.com/techblog/?p=867#comment-3187</guid>
		<description>hey, how will php know the value of offset? Read my article for complete references:</description>
		<content:encoded><![CDATA[<p>hey, how will php know the value of offset? Read my article for complete references:</p>
]]></content:encoded>
	</item>
</channel>
</rss>
