<?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"
	>
<channel>
	<title>Comments on: My Server&#8217;s Clock</title>
	<atom:link href="http://ferdianto.com/2006/11/20/my-servers-clock/feed/" rel="self" type="application/rss+xml" />
	<link>http://ferdianto.com/2006/11/20/my-servers-clock/</link>
	<description>Coding (Not Coding)</description>
	<pubDate>Fri, 21 Nov 2008 09:32:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Robert Lozyniak</title>
		<link>http://ferdianto.com/2006/11/20/my-servers-clock/#comment-835</link>
		<dc:creator>Robert Lozyniak</dc:creator>
		<pubDate>Tue, 10 Jul 2007 20:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://ferdianto.com/2006/11/20/my-servers-clock/#comment-835</guid>
		<description>Your clock has a bug.

You forgot about the difference between PHP month numbering and JavaScript month numbering. PHP counts months as the Japanese do: January = 1, February = 2, etc. JavaScript is different. In JavaScript, January is month 0, February is month 1, etc.

You can take these lines
    // here's the PHP code that spawn out the server local time
    
    // now we represent the server time as javascript date
    var server = new Date(, , , , , ).getTime();
and replace them with
    // here's the PHP code that spawn out the server local time
    
    // now we represent the server time as javascript date
    // note we subtract 1 from the month
    var server = new Date(,  - 1, , , , ).getTime();
or if you want UTC you can just do this
    // here's the PHP code that spawn out the server local time
    
    // now we represent the server time as javascript date
    var server = ;
Note: none of my code has been tested!</description>
		<content:encoded><![CDATA[<p>Your clock has a bug.</p>
<p>You forgot about the difference between PHP month numbering and JavaScript month numbering. PHP counts months as the Japanese do: January = 1, February = 2, etc. JavaScript is different. In JavaScript, January is month 0, February is month 1, etc.</p>
<p>You can take these lines<br />
    // here&#8217;s the PHP code that spawn out the server local time</p>
<p>    // now we represent the server time as javascript date<br />
    var server = new Date(, , , , , ).getTime();<br />
and replace them with<br />
    // here&#8217;s the PHP code that spawn out the server local time</p>
<p>    // now we represent the server time as javascript date<br />
    // note we subtract 1 from the month<br />
    var server = new Date(,  - 1, , , , ).getTime();<br />
or if you want UTC you can just do this<br />
    // here&#8217;s the PHP code that spawn out the server local time</p>
<p>    // now we represent the server time as javascript date<br />
    var server = ;<br />
Note: none of my code has been tested!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: isdah junker ngalam</title>
		<link>http://ferdianto.com/2006/11/20/my-servers-clock/#comment-283</link>
		<dc:creator>isdah junker ngalam</dc:creator>
		<pubDate>Tue, 21 Nov 2006 16:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://ferdianto.com/2006/11/20/my-servers-clock/#comment-283</guid>
		<description>weik... titlenya itu loh... so spam geto...</description>
		<content:encoded><![CDATA[<p>weik&#8230; titlenya itu loh&#8230; so spam geto&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aryo Sanjaya</title>
		<link>http://ferdianto.com/2006/11/20/my-servers-clock/#comment-282</link>
		<dc:creator>Aryo Sanjaya</dc:creator>
		<pubDate>Tue, 21 Nov 2006 07:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://ferdianto.com/2006/11/20/my-servers-clock/#comment-282</guid>
		<description>Fer, would you please make me some script, just like yours, but I need user may switch between local (client) and server time.
You may take a look at MotoGP.com, that already implement it.

Thank you.</description>
		<content:encoded><![CDATA[<p>Fer, would you please make me some script, just like yours, but I need user may switch between local (client) and server time.<br />
You may take a look at MotoGP.com, that already implement it.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
