<?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:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Sexy Time Zones in Ruby on Rails with Timezone_Fu</title>
	<atom:link href="http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/feed/" rel="self" type="application/rss+xml" />
	<link>http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/</link>
	<description>A collection of cool ideas we come across while building ThriveSmart.</description>
	<lastBuildDate>Wed, 30 Sep 2009 04:19:14 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dan</title>
		<link>http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-311</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sat, 17 May 2008 05:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-311</guid>
		<description>@Madhu, yes just create a helper that maps the more friendly time_zone_select names to tzinfo names.</description>
		<content:encoded><![CDATA[<p>@Madhu, yes just create a helper that maps the more friendly time_zone_select names to tzinfo names.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhu Nallamani</title>
		<link>http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-308</link>
		<dc:creator>Madhu Nallamani</dc:creator>
		<pubDate>Thu, 15 May 2008 20:44:31 +0000</pubDate>
		<guid isPermaLink="false">http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-308</guid>
		<description>Hi , 

Is there anyway I can display time in “US-Central” or “US-Eastern” format instead of “ America-New york” or “ Europe-Athens” format at the top of drop down list using Tzinfo . 

I am presently using “time_zone_select” which displays US zones on top of drop down in “ America-New york” format . 

 TZInfo::Timezone, :default =&gt; &quot;America/Chicago&quot; )%&gt;

I can display US zones in “ (GMT - 06:00 ) CentralTime (US &amp; Canada)” by using standard rails TimeZone (  ) . But , I will have problem when I use “utc_to_local” method . 

Thanks,
Madhu Nallamani</description>
		<content:encoded><![CDATA[<p>Hi , </p>
<p>Is there anyway I can display time in “US-Central” or “US-Eastern” format instead of “ America-New york” or “ Europe-Athens” format at the top of drop down list using Tzinfo . </p>
<p>I am presently using “time_zone_select” which displays US zones on top of drop down in “ America-New york” format . </p>
<p> TZInfo::Timezone, :default =&gt; &#8220;America/Chicago&#8221; )%&gt;</p>
<p>I can display US zones in “ (GMT &#8211; 06:00 ) CentralTime (US &amp; Canada)” by using standard rails TimeZone (  ) . But , I will have problem when I use “utc_to_local” method . </p>
<p>Thanks,<br />
Madhu Nallamani</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rick</title>
		<link>http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-291</link>
		<dc:creator>rick</dc:creator>
		<pubDate>Mon, 21 Jan 2008 20:57:35 +0000</pubDate>
		<guid isPermaLink="false">http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-291</guid>
		<description>Rails 2.1 will have timezone stuff built into activesupport, with tzinfo either bundled or used by Rails.  You can see the progress in the latest trunk version.  Just FYI...</description>
		<content:encoded><![CDATA[<p>Rails 2.1 will have timezone stuff built into activesupport, with tzinfo either bundled or used by Rails.  You can see the progress in the latest trunk version.  Just FYI&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AdaRuby: Web 2.0 Development with Rails &#187; Sexy Time Zones in Ruby on Rails with Timezone_Fu</title>
		<link>http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-290</link>
		<dc:creator>AdaRuby: Web 2.0 Development with Rails &#187; Sexy Time Zones in Ruby on Rails with Timezone_Fu</dc:creator>
		<pubDate>Mon, 21 Jan 2008 11:23:28 +0000</pubDate>
		<guid isPermaLink="false">http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-290</guid>
		<description>[...] easy as: has_timezone :fields =&gt; [ :start_datetime, :end_datetime] Timezone_fu makes it really easy to deal with datetime fields in your models. It adds a method to your models, [...]</description>
		<content:encoded><![CDATA[<p>[...] easy as: has_timezone :fields =&gt; [ :start_datetime, :end_datetime] Timezone_fu makes it really easy to deal with datetime fields in your models. It adds a method to your models, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-207</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Sun, 16 Dec 2007 16:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-207</guid>
		<description>You could do something like http://pastie.caboo.se/129287 to make it work with TzTime (untested), or to use a timezone attribute from a related model.</description>
		<content:encoded><![CDATA[<p>You could do something like <a href="http://pastie.caboo.se/129287" rel="nofollow">http://pastie.caboo.se/129287</a> to make it work with TzTime (untested), or to use a timezone attribute from a related model.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario T. Lanza</title>
		<link>http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-183</link>
		<dc:creator>Mario T. Lanza</dc:creator>
		<pubDate>Wed, 05 Dec 2007 20:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-183</guid>
		<description>Well.  I like the idea of timezone_fu, but I am confused about it&#039;s design and use.  Maybe you can clarify.

It looks like we are supposed to store &quot;timezone&quot; (e.g. &quot;US/Eastern&quot;) on the model.  So, if I have an Event table, I need a column called &quot;timezone&quot;.  Not sure why this is.  First, as far as I can tell, this value isn&#039;t automatically being stored when a record is created as I assumed it would be.  Second, even if it was being stored, I don&#039;t see the value as it appears all date/times are being stored as of UTC time.  Upon recalling the date/time for display, don&#039;t we want to convert to the user&#039;s locale (which we don&#039;t know until the user logs in).

Here&#039;s another source of confusion.  Most date/time values (from my perspective) are more useful in their original local timezone format.  I think an events table is more useful and better queried using local time arguments, not ones I had to manipulate.  That is, if I want to query events for a certain month I want to use a BETWEEN clause that reflects the true start and end of the month based on local times, not times that were fudged from UTC.  Here&#039;s where I see the valid use of the timezone attribute.  Store date/times using local values and accompany them with the name of the timezone from where the record originated, so that if need be we can make the appropriate conversion.

Could you provide a practical example in the documentation of how you made use of timezone_fu?  Right now, you just show how to extend the ActiveRecord model.</description>
		<content:encoded><![CDATA[<p>Well.  I like the idea of timezone_fu, but I am confused about it&#8217;s design and use.  Maybe you can clarify.</p>
<p>It looks like we are supposed to store &#8220;timezone&#8221; (e.g. &#8220;US/Eastern&#8221;) on the model.  So, if I have an Event table, I need a column called &#8220;timezone&#8221;.  Not sure why this is.  First, as far as I can tell, this value isn&#8217;t automatically being stored when a record is created as I assumed it would be.  Second, even if it was being stored, I don&#8217;t see the value as it appears all date/times are being stored as of UTC time.  Upon recalling the date/time for display, don&#8217;t we want to convert to the user&#8217;s locale (which we don&#8217;t know until the user logs in).</p>
<p>Here&#8217;s another source of confusion.  Most date/time values (from my perspective) are more useful in their original local timezone format.  I think an events table is more useful and better queried using local time arguments, not ones I had to manipulate.  That is, if I want to query events for a certain month I want to use a BETWEEN clause that reflects the true start and end of the month based on local times, not times that were fudged from UTC.  Here&#8217;s where I see the valid use of the timezone attribute.  Store date/times using local values and accompany them with the name of the timezone from where the record originated, so that if need be we can make the appropriate conversion.</p>
<p>Could you provide a practical example in the documentation of how you made use of timezone_fu?  Right now, you just show how to extend the ActiveRecord model.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-176</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sun, 02 Dec 2007 23:57:57 +0000</pubDate>
		<guid isPermaLink="false">http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-176</guid>
		<description>@Joerg, I my put the code into svn at some point.  We use git for all of the thrivesmart projects and I haven&#039;t had a chance to setup any SVN repositories.</description>
		<content:encoded><![CDATA[<p>@Joerg, I my put the code into svn at some point.  We use git for all of the thrivesmart projects and I haven&#8217;t had a chance to setup any SVN repositories.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joerg Battermann</title>
		<link>http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-175</link>
		<dc:creator>Joerg Battermann</dc:creator>
		<pubDate>Sun, 02 Dec 2007 22:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-175</guid>
		<description>Hola! Any plans to use a svn-repository instead of normal downloads in the near future? Miight make things a tad easier :)

But awesome work and thanks for opernsourcing it!</description>
		<content:encoded><![CDATA[<p>Hola! Any plans to use a svn-repository instead of normal downloads in the near future? Miight make things a tad easier <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>But awesome work and thanks for opernsourcing it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-172</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sat, 01 Dec 2007 07:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-172</guid>
		<description>@stephen - I think you might want  Jamis Buck’s TzTime (http://weblog.jamisbuck.org/2007/2/2/introducing-tztime) plugin.</description>
		<content:encoded><![CDATA[<p>@stephen &#8211; I think you might want  Jamis Buck’s TzTime (<a href="http://weblog.jamisbuck.org/2007/2/2/introducing-tztime" rel="nofollow">http://weblog.jamisbuck.org/2007/2/2/introducing-tztime</a>) plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-171</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Sat, 01 Dec 2007 03:52:59 +0000</pubDate>
		<guid isPermaLink="false">http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/#comment-171</guid>
		<description>This sounds nice, but is there a way to centralize the timezone setting to the user?</description>
		<content:encoded><![CDATA[<p>This sounds nice, but is there a way to centralize the timezone setting to the user?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
