<?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: Getting the Time Zone from a Web Browser</title>
	<atom:link href="http://blog.redfin.com/devblog/2007/08/getting_the_time_zone_from_a_web_browser.html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.redfin.com/devblog/2007/08/getting_the_time_zone_from_a_web_browser.html</link>
	<description>Redfin Developers\' Blog</description>
	<lastBuildDate>Sat, 21 Nov 2009 14:23:24 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Manoj Kumar Golhani</title>
		<link>http://blog.redfin.com/devblog/2007/08/getting_the_time_zone_from_a_web_browser.html/comment-page-1#comment-6504</link>
		<dc:creator>Manoj Kumar Golhani</dc:creator>
		<pubDate>Mon, 22 Sep 2008 05:33:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.redfin.com/devblog/2007/08/getting_the_time_zone_from_a_web_browser.html#comment-6504</guid>
		<description>Thanks,
It will Be usefull for me for a world wide application.
                               Regards
                        Manoj Kumar Golhani
                        Software Developer</description>
		<content:encoded><![CDATA[<p>Thanks,<br />
It will Be usefull for me for a world wide application.<br />
                               Regards<br />
                        Manoj Kumar Golhani<br />
                        Software Developer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Smedberg</title>
		<link>http://blog.redfin.com/devblog/2007/08/getting_the_time_zone_from_a_web_browser.html/comment-page-1#comment-2508</link>
		<dc:creator>Michael Smedberg</dc:creator>
		<pubDate>Fri, 25 Jan 2008 16:57:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.redfin.com/devblog/2007/08/getting_the_time_zone_from_a_web_browser.html#comment-2508</guid>
		<description>NAC, your point is well taken.  Using more &quot;probe&quot; datetimes would increase the accuracy of this code.  You could even imagine a decision tree that chooses exactly the correct datetimes to differentiate between problematic timezones (e.g. there are timezones that were different in the past, but are now effectively the same.)  In my case, that complexity wasn&#039;t justified.
I&#039;ve used ICU on server-side stuff before with a lot of success- it&#039;s robust and full featured.  It&#039;s probably a good substitute for TZInfo if you would prefer to hack in Java or C++, but I think the end result is still Javascript, and I THINK that ICU doesn&#039;t contain any &quot;detect the timezone of the browser&quot; type functionality (though I haven&#039;t used ICU in a while- I could be behind the times.)</description>
		<content:encoded><![CDATA[<p>NAC, your point is well taken.  Using more &#8220;probe&#8221; datetimes would increase the accuracy of this code.  You could even imagine a decision tree that chooses exactly the correct datetimes to differentiate between problematic timezones (e.g. there are timezones that were different in the past, but are now effectively the same.)  In my case, that complexity wasn&#8217;t justified.<br />
I&#8217;ve used ICU on server-side stuff before with a lot of success- it&#8217;s robust and full featured.  It&#8217;s probably a good substitute for TZInfo if you would prefer to hack in Java or C++, but I think the end result is still Javascript, and I THINK that ICU doesn&#8217;t contain any &#8220;detect the timezone of the browser&#8221; type functionality (though I haven&#8217;t used ICU in a while- I could be behind the times.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NAC</title>
		<link>http://blog.redfin.com/devblog/2007/08/getting_the_time_zone_from_a_web_browser.html/comment-page-1#comment-2495</link>
		<dc:creator>NAC</dc:creator>
		<pubDate>Fri, 25 Jan 2008 06:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.redfin.com/devblog/2007/08/getting_the_time_zone_from_a_web_browser.html#comment-2495</guid>
		<description>You can do better than this by also factoring in the transition times between daylight/non daylight savings time.

You&#039;ll also find a great set of available data in the IBM ICU library, conveniently driven by Java or (IKVM) .NET.

ICU&#039;s parse/format data is sufficiently detailed that I have used it to implement a complete JS Date/Time replacement class that provides localised parsing, formatting and GMT conversion for any global timezone independent of whatever the user&#039;s browser is set to.</description>
		<content:encoded><![CDATA[<p>You can do better than this by also factoring in the transition times between daylight/non daylight savings time.</p>
<p>You&#8217;ll also find a great set of available data in the IBM ICU library, conveniently driven by Java or (IKVM) .NET.</p>
<p>ICU&#8217;s parse/format data is sufficiently detailed that I have used it to implement a complete JS Date/Time replacement class that provides localised parsing, formatting and GMT conversion for any global timezone independent of whatever the user&#8217;s browser is set to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dutch Marlowe</title>
		<link>http://blog.redfin.com/devblog/2007/08/getting_the_time_zone_from_a_web_browser.html/comment-page-1#comment-6</link>
		<dc:creator>Dutch Marlowe</dc:creator>
		<pubDate>Tue, 18 Sep 2007 23:53:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.redfin.com/devblog/2007/08/getting_the_time_zone_from_a_web_browser.html#comment-6</guid>
		<description>Wouldn&#039;t it be great if everyone had Firefox? :)


timezones = {
	&#039;ACDT&#039; : &#039;Australian Central Daylight Time&#039;,
	&#039;ACST&#039; : &#039;Australian Central Standard Time&#039;,
	&#039;ADT&#039; : &#039;Atlantic Daylight Time&#039;,
	&#039;AEDT&#039; : &#039;Australian Eastern Daylight Time&#039;,
	&#039;AEST&#039; : &#039;Australian Eastern Standard Time&#039;,
	&#039;AKDT&#039; : &#039;Alaska Daylight Time&#039;,
	&#039;AKST&#039; : &#039;Alaska Standard Time&#039;,
	&#039;AST&#039; : &#039;Atlantic Standard Time&#039;,
	&#039;AWDT&#039; : &#039;Australian Western Daylight Time&#039;,
	&#039;AWST&#039; : &#039;Australian Western Standard Time&#039;,
	&#039;BST&#039; : &#039;British Summer Time&#039;,
	&#039;CDT&#039; : &#039;Central Daylight Time&#039;,
	&#039;CEDT&#039; : &#039;Central European Daylight Time&#039;,
	&#039;CEST&#039; : &#039;Central European Summer Time&#039;,
	&#039;CET&#039; : &#039;Central European Time&#039;,
	&#039;CST&#039; : &#039;Central Summer(Daylight) Time&#039;,
	&#039;CST&#039; : &#039;Central Standard Time&#039;,
	&#039;CST&#039; : &#039;Central Standard Time&#039;,
	&#039;CXT&#039; : &#039;Christmas Island Time&#039;,
	&#039;EDT&#039; : &#039;Eastern Daylight Time&#039;,
	&#039;EEDT&#039; : &#039;Eastern European Daylight Time&#039;,
	&#039;EEST&#039; : &#039;Eastern European Summer Time&#039;,
	&#039;EET&#039; : &#039;Eastern European Time&#039;,
	&#039;EST&#039; : &#039;Eastern Summer(Daylight) Time&#039;,
	&#039;EST&#039; : &#039;Eastern Standard Time&#039;,
	&#039;EST&#039; : &#039;Eastern Standard Time&#039;,
	&#039;GMT&#039; : &#039;Greenwich Mean Time&#039;,
	&#039;HAA&#039; : &#039;Heure Avancée de l\&#039;Atlantique&#039;,
	&#039;HAC&#039; : &#039;Heure Avancée du Centre&#039;,
	&#039;HADT&#039; : &#039;Hawaii-Aleutian Daylight Time&#039;,
	&#039;HAE&#039; : &#039;Heure Avancée de l\&#039;Est&#039;,
	&#039;HAP&#039; : &#039;Heure Avancée du Pacifique&#039;,
	&#039;HAR&#039; : &#039;Heure Avancée des Rocheuses&#039;,
	&#039;HAST&#039; : &#039;Hawaii-Aleutian Standard Time&#039;,
	&#039;HAT&#039; : &#039;Heure Avancée de Terre-Neuve&#039;,
	&#039;HAY&#039; : &#039;Heure Avancée du Yukon&#039;,
	&#039;HNA&#039; : &#039;Heure Normale de l\&#039;Atlantique&#039;,
	&#039;HNC&#039; : &#039;Heure Normale du Centre&#039;,
	&#039;HNE&#039; : &#039;Heure Normale de l\&#039;Est&#039;,
	&#039;HNP&#039; : &#039;Heure Normale du Pacifique&#039;,
	&#039;HNR&#039; : &#039;Heure Normale des Rocheuses&#039;,
	&#039;HNT&#039; : &#039;Heure Normale de Terre-Neuve&#039;,
	&#039;HNY&#039; : &#039;Heure Normale du Yukon&#039;,
	&#039;IST&#039; : &#039;Irish Summer Time&#039;,
	&#039;MDT&#039; : &#039;Mountain Daylight Time&#039;,
	&#039;MESZ&#039; : &#039;Mitteleuropäische Sommerzeit&#039;,
	&#039;MEZ&#039; : &#039;Mitteleuropäische Zeit&#039;,
	&#039;MST&#039; : &#039;Mountain Standard Time&#039;,
	&#039;NDT&#039; : &#039;Newfoundland Daylight Time&#039;,
	&#039;NFT&#039; : &#039;Norfolk (Island) Time&#039;,
	&#039;NST&#039; : &#039;Newfoundland Standard Time&#039;,
	&#039;PDT&#039; : &#039;Pacific Daylight Time&#039;,
	&#039;PST&#039; : &#039;Pacific Standard Time&#039;,
	&#039;UTC&#039; : &#039;Coordinated Universal Time&#039;,
	&#039;WEDT&#039; : &#039;Western European Daylight Time&#039;,
	&#039;WEST&#039; : &#039;Western European Summer Time&#039;,
	&#039;WET&#039; : &#039;Western European Time&#039;,
	&#039;WST&#039; : &#039;Western Summer(Daylight) Time&#039;,
	&#039;WST&#039; : &#039;Western Standard Time&#039;
};

getZone = function() {
	tz =  timezones[new Date().toString().replace(/^.*\(&#124;\)$/g, &quot;&quot;)];
	return tz &#124;&#124; &quot;Pacific (or something)&quot;;
}
alert(getZone());</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t it be great if everyone had Firefox? <img src='http://blog.redfin.com/devblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>timezones = {<br />
	&#8216;ACDT&#8217; : &#8216;Australian Central Daylight Time&#8217;,<br />
	&#8216;ACST&#8217; : &#8216;Australian Central Standard Time&#8217;,<br />
	&#8216;ADT&#8217; : &#8216;Atlantic Daylight Time&#8217;,<br />
	&#8216;AEDT&#8217; : &#8216;Australian Eastern Daylight Time&#8217;,<br />
	&#8216;AEST&#8217; : &#8216;Australian Eastern Standard Time&#8217;,<br />
	&#8216;AKDT&#8217; : &#8216;Alaska Daylight Time&#8217;,<br />
	&#8216;AKST&#8217; : &#8216;Alaska Standard Time&#8217;,<br />
	&#8216;AST&#8217; : &#8216;Atlantic Standard Time&#8217;,<br />
	&#8216;AWDT&#8217; : &#8216;Australian Western Daylight Time&#8217;,<br />
	&#8216;AWST&#8217; : &#8216;Australian Western Standard Time&#8217;,<br />
	&#8216;BST&#8217; : &#8216;British Summer Time&#8217;,<br />
	&#8216;CDT&#8217; : &#8216;Central Daylight Time&#8217;,<br />
	&#8216;CEDT&#8217; : &#8216;Central European Daylight Time&#8217;,<br />
	&#8216;CEST&#8217; : &#8216;Central European Summer Time&#8217;,<br />
	&#8216;CET&#8217; : &#8216;Central European Time&#8217;,<br />
	&#8216;CST&#8217; : &#8216;Central Summer(Daylight) Time&#8217;,<br />
	&#8216;CST&#8217; : &#8216;Central Standard Time&#8217;,<br />
	&#8216;CST&#8217; : &#8216;Central Standard Time&#8217;,<br />
	&#8216;CXT&#8217; : &#8216;Christmas Island Time&#8217;,<br />
	&#8216;EDT&#8217; : &#8216;Eastern Daylight Time&#8217;,<br />
	&#8216;EEDT&#8217; : &#8216;Eastern European Daylight Time&#8217;,<br />
	&#8216;EEST&#8217; : &#8216;Eastern European Summer Time&#8217;,<br />
	&#8216;EET&#8217; : &#8216;Eastern European Time&#8217;,<br />
	&#8216;EST&#8217; : &#8216;Eastern Summer(Daylight) Time&#8217;,<br />
	&#8216;EST&#8217; : &#8216;Eastern Standard Time&#8217;,<br />
	&#8216;EST&#8217; : &#8216;Eastern Standard Time&#8217;,<br />
	&#8216;GMT&#8217; : &#8216;Greenwich Mean Time&#8217;,<br />
	&#8216;HAA&#8217; : &#8216;Heure Avancée de l\&#8217;Atlantique&#8217;,<br />
	&#8216;HAC&#8217; : &#8216;Heure Avancée du Centre&#8217;,<br />
	&#8216;HADT&#8217; : &#8216;Hawaii-Aleutian Daylight Time&#8217;,<br />
	&#8216;HAE&#8217; : &#8216;Heure Avancée de l\&#8217;Est&#8217;,<br />
	&#8216;HAP&#8217; : &#8216;Heure Avancée du Pacifique&#8217;,<br />
	&#8216;HAR&#8217; : &#8216;Heure Avancée des Rocheuses&#8217;,<br />
	&#8216;HAST&#8217; : &#8216;Hawaii-Aleutian Standard Time&#8217;,<br />
	&#8216;HAT&#8217; : &#8216;Heure Avancée de Terre-Neuve&#8217;,<br />
	&#8216;HAY&#8217; : &#8216;Heure Avancée du Yukon&#8217;,<br />
	&#8216;HNA&#8217; : &#8216;Heure Normale de l\&#8217;Atlantique&#8217;,<br />
	&#8216;HNC&#8217; : &#8216;Heure Normale du Centre&#8217;,<br />
	&#8216;HNE&#8217; : &#8216;Heure Normale de l\&#8217;Est&#8217;,<br />
	&#8216;HNP&#8217; : &#8216;Heure Normale du Pacifique&#8217;,<br />
	&#8216;HNR&#8217; : &#8216;Heure Normale des Rocheuses&#8217;,<br />
	&#8216;HNT&#8217; : &#8216;Heure Normale de Terre-Neuve&#8217;,<br />
	&#8216;HNY&#8217; : &#8216;Heure Normale du Yukon&#8217;,<br />
	&#8216;IST&#8217; : &#8216;Irish Summer Time&#8217;,<br />
	&#8216;MDT&#8217; : &#8216;Mountain Daylight Time&#8217;,<br />
	&#8216;MESZ&#8217; : &#8216;Mitteleuropäische Sommerzeit&#8217;,<br />
	&#8216;MEZ&#8217; : &#8216;Mitteleuropäische Zeit&#8217;,<br />
	&#8216;MST&#8217; : &#8216;Mountain Standard Time&#8217;,<br />
	&#8216;NDT&#8217; : &#8216;Newfoundland Daylight Time&#8217;,<br />
	&#8216;NFT&#8217; : &#8216;Norfolk (Island) Time&#8217;,<br />
	&#8216;NST&#8217; : &#8216;Newfoundland Standard Time&#8217;,<br />
	&#8216;PDT&#8217; : &#8216;Pacific Daylight Time&#8217;,<br />
	&#8216;PST&#8217; : &#8216;Pacific Standard Time&#8217;,<br />
	&#8216;UTC&#8217; : &#8216;Coordinated Universal Time&#8217;,<br />
	&#8216;WEDT&#8217; : &#8216;Western European Daylight Time&#8217;,<br />
	&#8216;WEST&#8217; : &#8216;Western European Summer Time&#8217;,<br />
	&#8216;WET&#8217; : &#8216;Western European Time&#8217;,<br />
	&#8216;WST&#8217; : &#8216;Western Summer(Daylight) Time&#8217;,<br />
	&#8216;WST&#8217; : &#8216;Western Standard Time&#8217;<br />
};</p>
<p>getZone = function() {<br />
	tz =  timezones[new Date().toString().replace(/^.*\(|\)$/g, "")];<br />
	return tz || &#8220;Pacific (or something)&#8221;;<br />
}<br />
alert(getZone());</p>
]]></content:encoded>
	</item>
</channel>
</rss>
