<?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: Auto detect a time zone with JavaScript</title>
	<atom:link href="http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/</link>
	<description>a blog about building stuff on the web</description>
	<lastBuildDate>Fri, 05 Mar 2010 04:15:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: hkl</title>
		<link>http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/comment-page-2/#comment-880</link>
		<dc:creator>hkl</dc:creator>
		<pubDate>Tue, 02 Mar 2010 11:08:06 +0000</pubDate>
		<guid isPermaLink="false">http://onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/#comment-880</guid>
		<description>Hi Josh, 
 
really great work! I found 2 little bugs: in the convert function you have to take the absolute value of minutes to find the correct index. Then you will get the correct timezone for Newfoundland. And I think the entry for Tehran must be set to dst, right? </description>
		<content:encoded><![CDATA[<p>Hi Josh, </p>
<p>really great work! I found 2 little bugs: in the convert function you have to take the absolute value of minutes to find the correct index. Then you will get the correct timezone for Newfoundland. And I think the entry for Tehran must be set to dst, right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Fraser</title>
		<link>http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/comment-page-2/#comment-865</link>
		<dc:creator>Josh Fraser</dc:creator>
		<pubDate>Mon, 22 Feb 2010 06:23:52 +0000</pubDate>
		<guid isPermaLink="false">http://onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/#comment-865</guid>
		<description>Notice the comment I put at the bottom &quot;As with anything that I post on this blog, feel free to use this code however you want. Just don&#8217;t blame me if it breaks.&quot; 
 
Since then I have started releases everything under the Apache 2.0 license. </description>
		<content:encoded><![CDATA[<p>Notice the comment I put at the bottom &quot;As with anything that I post on this blog, feel free to use this code however you want. Just don&rsquo;t blame me if it breaks.&quot; </p>
<p>Since then I have started releases everything under the Apache 2.0 license.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dothebart</title>
		<link>http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/comment-page-2/#comment-864</link>
		<dc:creator>dothebart</dc:creator>
		<pubDate>Sun, 21 Feb 2010 23:04:21 +0000</pubDate>
		<guid isPermaLink="false">http://onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/#comment-864</guid>
		<description>Hey Josh,  
this looks like a very useable piece of js.  
Since you posted it here, your intention probably is to share this and let others make use of this, right? 
As you put just your name over it, gerenal copyright applies and one wouldn&#039;t legaly be able to use or redistribute it. 
Most probably something like the BSD license would be appropriate for this work? 
&lt;a href=&quot;http://opensource.org/licenses/bsd-license.php&quot; target=&quot;_blank&quot;&gt;http://opensource.org/licenses/bsd-license.php&lt;/a&gt; </description>
		<content:encoded><![CDATA[<p>Hey Josh,<br />
this looks like a very useable piece of js.<br />
Since you posted it here, your intention probably is to share this and let others make use of this, right?<br />
As you put just your name over it, gerenal copyright applies and one wouldn&#039;t legaly be able to use or redistribute it.<br />
Most probably something like the BSD license would be appropriate for this work?<br />
<a href="http://opensource.org/licenses/bsd-license.php" target="_blank">http://opensource.org/licenses/bsd-license.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guest</title>
		<link>http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/comment-page-2/#comment-855</link>
		<dc:creator>guest</dc:creator>
		<pubDate>Sat, 13 Feb 2010 18:33:59 +0000</pubDate>
		<guid isPermaLink="false">http://onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/#comment-855</guid>
		<description>I have also verified that the script does break if you set your computer timezone to Newfoundaland. </description>
		<content:encoded><![CDATA[<p>I have also verified that the script does break if you set your computer timezone to Newfoundaland.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sydney</title>
		<link>http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/comment-page-2/#comment-851</link>
		<dc:creator>sydney</dc:creator>
		<pubDate>Fri, 05 Feb 2010 16:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/#comment-851</guid>
		<description>How do you go about solving the issue where you have multiple time zones with same offset and dst. I want to be able to uniquely identify the timezones. </description>
		<content:encoded><![CDATA[<p>How do you go about solving the issue where you have multiple time zones with same offset and dst. I want to be able to uniquely identify the timezones.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zhibin</title>
		<link>http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/comment-page-2/#comment-813</link>
		<dc:creator>Zhibin</dc:creator>
		<pubDate>Fri, 18 Dec 2009 02:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/#comment-813</guid>
		<description>I found that you are actually using the date of July 1st to compare with January 1st, instead of using June 1st as you claimed. Although this has no impact on the end result, I would just like to point it out so that you may update your blog to correct it. 
 
Here is the javascript code of yours: 
var june1 = new Date(rightNow.getFullYear(), 6, 1, 0, 0, 0, 0); // june 1st 
 
&quot;6&quot; actually means July here, because the parameter for the month starts with 0 for January and ends with 11 for December. 
 
Zhibin </description>
		<content:encoded><![CDATA[<p>I found that you are actually using the date of July 1st to compare with January 1st, instead of using June 1st as you claimed. Although this has no impact on the end result, I would just like to point it out so that you may update your blog to correct it. </p>
<p>Here is the javascript code of yours:<br />
var june1 = new Date(rightNow.getFullYear(), 6, 1, 0, 0, 0, 0); // june 1st </p>
<p>&quot;6&quot; actually means July here, because the parameter for the month starts with 0 for January and ends with 11 for December. </p>
<p>Zhibin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: @yuricake</title>
		<link>http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/comment-page-2/#comment-743</link>
		<dc:creator>@yuricake</dc:creator>
		<pubDate>Sat, 07 Nov 2009 19:08:10 +0000</pubDate>
		<guid isPermaLink="false">http://onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/#comment-743</guid>
		<description>I don&#039;t understand why you need to create two dates and subtract them - wouldn&#039;t the internal Date engine just use the timezoneOffset to figure out the difference? In other words, what you are doing is the equivalent of taking jan1.getTimezoneOffset() and jun1.getTimezoneOffset(), no? can you give an example where the results of those two function calls is different from your code? </description>
		<content:encoded><![CDATA[<p>I don&#039;t understand why you need to create two dates and subtract them &#8211; wouldn&#039;t the internal Date engine just use the timezoneOffset to figure out the difference? In other words, what you are doing is the equivalent of taking jan1.getTimezoneOffset() and jun1.getTimezoneOffset(), no? can you give an example where the results of those two function calls is different from your code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Fraser</title>
		<link>http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/comment-page-1/#comment-736</link>
		<dc:creator>Josh Fraser</dc:creator>
		<pubDate>Wed, 21 Oct 2009 07:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/#comment-736</guid>
		<description>Awesome.  Glad to hear it. </description>
		<content:encoded><![CDATA[<p>Awesome.  Glad to hear it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: venkat</title>
		<link>http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/comment-page-1/#comment-735</link>
		<dc:creator>venkat</dc:creator>
		<pubDate>Wed, 21 Oct 2009 07:00:13 +0000</pubDate>
		<guid isPermaLink="false">http://onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/#comment-735</guid>
		<description>Thanks... awesome script.. saved a lot of my time </description>
		<content:encoded><![CDATA[<p>Thanks&#8230; awesome script.. saved a lot of my time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jana</title>
		<link>http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/comment-page-1/#comment-723</link>
		<dc:creator>jana</dc:creator>
		<pubDate>Fri, 02 Oct 2009 16:19:30 +0000</pubDate>
		<guid isPermaLink="false">http://onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/#comment-723</guid>
		<description>Thanks lot. Nice script.  </description>
		<content:encoded><![CDATA[<p>Thanks lot. Nice script.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
