<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Automagic Time Localization</title>
	<atom:link href="http://kohari.org/2009/06/15/automagic-time-localization/feed/" rel="self" type="application/rss+xml" />
	<link>http://kohari.org/2009/06/15/automagic-time-localization/</link>
	<description>Rambling and occasional wisdom from Nate Kohari</description>
	<lastBuildDate>Thu, 21 Jul 2011 13:50:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Simplify IUserType Testing &#171; Random Code</title>
		<link>http://kohari.org/2009/06/15/automagic-time-localization/#comment-398</link>
		<dc:creator><![CDATA[Simplify IUserType Testing &#171; Random Code]]></dc:creator>
		<pubDate>Fri, 16 Oct 2009 02:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2009/06/15/automagic-time-localization/#comment-398</guid>
		<description><![CDATA[[...] the timezone is relatively simple, I use a slightly modified version of this technique used by Nate Kohari&#8217;s most excellent [...] ]]></description>
		<content:encoded><![CDATA[<p>[...] the timezone is relatively simple, I use a slightly modified version of this technique used by Nate Kohari&#8217;s most excellent [...] </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #374</title>
		<link>http://kohari.org/2009/06/15/automagic-time-localization/#comment-397</link>
		<dc:creator><![CDATA[Reflective Perspective - Chris Alcock &#187; The Morning Brew #374]]></dc:creator>
		<pubDate>Tue, 23 Jun 2009 06:53:05 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2009/06/15/automagic-time-localization/#comment-397</guid>
		<description><![CDATA[[...] Automagic Time Localization - Nate Kohari discusses one of the trickier aspects of developing hosted applications for users spread over the world, getting the time right where your user is. [...] ]]></description>
		<content:encoded><![CDATA[<p>[...] Automagic Time Localization &#8211; Nate Kohari discusses one of the trickier aspects of developing hosted applications for users spread over the world, getting the time right where your user is. [...] </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weekly Web Nuggets #69 : Code Monkey Labs</title>
		<link>http://kohari.org/2009/06/15/automagic-time-localization/#comment-396</link>
		<dc:creator><![CDATA[Weekly Web Nuggets #69 : Code Monkey Labs]]></dc:creator>
		<pubDate>Tue, 23 Jun 2009 04:28:55 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2009/06/15/automagic-time-localization/#comment-396</guid>
		<description><![CDATA[[...] Automagic Time Localization: Nate Kohari shows a dead-simple way to get users’ time zone…without making them pick from a list of every time zone on the planet! [...] ]]></description>
		<content:encoded><![CDATA[<p>[...] Automagic Time Localization: Nate Kohari shows a dead-simple way to get users’ time zone…without making them pick from a list of every time zone on the planet! [...] </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Wright</title>
		<link>http://kohari.org/2009/06/15/automagic-time-localization/#comment-395</link>
		<dc:creator><![CDATA[Steve Wright]]></dc:creator>
		<pubDate>Fri, 19 Jun 2009 02:43:06 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2009/06/15/automagic-time-localization/#comment-395</guid>
		<description><![CDATA[@JP: I utilize the .NET 3.5 TimeZoneInfo class to convert times on my websites, I think it only works on Full Trust though, not 100% sure.]]></description>
		<content:encoded><![CDATA[<p>@JP: I utilize the .NET 3.5 TimeZoneInfo class to convert times on my websites, I think it only works on Full Trust though, not 100% sure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JP</title>
		<link>http://kohari.org/2009/06/15/automagic-time-localization/#comment-394</link>
		<dc:creator><![CDATA[JP]]></dc:creator>
		<pubDate>Wed, 17 Jun 2009 17:22:40 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2009/06/15/automagic-time-localization/#comment-394</guid>
		<description><![CDATA[Of course, the code that I&#039;ve posted works for fat clients, not web clients...]]></description>
		<content:encoded><![CDATA[<p>Of course, the code that I&#8217;ve posted works for fat clients, not web clients&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JP</title>
		<link>http://kohari.org/2009/06/15/automagic-time-localization/#comment-393</link>
		<dc:creator><![CDATA[JP]]></dc:creator>
		<pubDate>Wed, 17 Jun 2009 17:15:41 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2009/06/15/automagic-time-localization/#comment-393</guid>
		<description><![CDATA[.NET 3.5 introduces the TimeZoneInfo class that provides a much better way to convert a time between timezones.

Using it, you can do something like this:
public static DateTime GetLocalTime(DateTime utc)
{
	return TimeZoneInfo.ConvertTime(utc, TimeZoneInfo.Local);
}

I&#039;m not sure if it handles daylight saving correctly, but I bet it does.]]></description>
		<content:encoded><![CDATA[<p>.NET 3.5 introduces the TimeZoneInfo class that provides a much better way to convert a time between timezones.</p>
<p>Using it, you can do something like this:<br />
public static DateTime GetLocalTime(DateTime utc)<br />
{<br />
	return TimeZoneInfo.ConvertTime(utc, TimeZoneInfo.Local);<br />
}</p>
<p>I&#8217;m not sure if it handles daylight saving correctly, but I bet it does.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garry Shutler</title>
		<link>http://kohari.org/2009/06/15/automagic-time-localization/#comment-392</link>
		<dc:creator><![CDATA[Garry Shutler]]></dc:creator>
		<pubDate>Tue, 16 Jun 2009 16:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2009/06/15/automagic-time-localization/#comment-392</guid>
		<description><![CDATA[A step further would be to have all dates sent to the client in UTC and then use Javascript to format them as local time.

This doesn&#039;t require the user to login to update the offset and will work instantly.]]></description>
		<content:encoded><![CDATA[<p>A step further would be to have all dates sent to the client in UTC and then use Javascript to format them as local time.</p>
<p>This doesn&#8217;t require the user to login to update the offset and will work instantly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad Myers</title>
		<link>http://kohari.org/2009/06/15/automagic-time-localization/#comment-391</link>
		<dc:creator><![CDATA[Chad Myers]]></dc:creator>
		<pubDate>Mon, 15 Jun 2009 23:50:36 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2009/06/15/automagic-time-localization/#comment-391</guid>
		<description><![CDATA[Amen to storing only UTC.  Nice trick with the client side discovery. Definitely going to use that one.

Side note, this is known as the &quot;Money pattern&quot;.  Any time you have relative values depending on geographic or environmental factors or other variable unit sizes, always normalize to a common denominator.  Physical measurements (metric vs English units), Money (currency exchange rates, etc), and time/timezones are good examples.]]></description>
		<content:encoded><![CDATA[<p>Amen to storing only UTC.  Nice trick with the client side discovery. Definitely going to use that one.</p>
<p>Side note, this is known as the &#8220;Money pattern&#8221;.  Any time you have relative values depending on geographic or environmental factors or other variable unit sizes, always normalize to a common denominator.  Physical measurements (metric vs English units), Money (currency exchange rates, etc), and time/timezones are good examples.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G. Andrew Duthie</title>
		<link>http://kohari.org/2009/06/15/automagic-time-localization/#comment-390</link>
		<dc:creator><![CDATA[G. Andrew Duthie]]></dc:creator>
		<pubDate>Mon, 15 Jun 2009 17:03:37 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2009/06/15/automagic-time-localization/#comment-390</guid>
		<description><![CDATA[Fair enough...I think in the case of Zen and distributed teams, your solution may make more sense than mine.

I do wish that working with time was easier in general. Daylight savings time rules in particular are complex, and change often. I long for a simple solution that doesn&#039;t make my head hurt. :-)]]></description>
		<content:encoded><![CDATA[<p>Fair enough&#8230;I think in the case of Zen and distributed teams, your solution may make more sense than mine.</p>
<p>I do wish that working with time was easier in general. Daylight savings time rules in particular are complex, and change often. I long for a simple solution that doesn&#8217;t make my head hurt. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Wright</title>
		<link>http://kohari.org/2009/06/15/automagic-time-localization/#comment-389</link>
		<dc:creator><![CDATA[Steve Wright]]></dc:creator>
		<pubDate>Mon, 15 Jun 2009 16:47:17 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2009/06/15/automagic-time-localization/#comment-389</guid>
		<description><![CDATA[I understand the ease of use of not storing time zone.  With this application, I wouldn&#039;t care if times were displaying differently across the daylight savings boundaries because all times would have to change with it based on your current offset.

I disagree that it&#039;s always better to display the localized time because you might be traveling and want to see it in your home time zone.]]></description>
		<content:encoded><![CDATA[<p>I understand the ease of use of not storing time zone.  With this application, I wouldn&#8217;t care if times were displaying differently across the daylight savings boundaries because all times would have to change with it based on your current offset.</p>
<p>I disagree that it&#8217;s always better to display the localized time because you might be traveling and want to see it in your home time zone.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

