<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'Time Zones By Country Using Rails TZInfo'</title>
    <description>Snipplr comments feed</description>
    <link>https://ipv6.snipplr.com/</link>
    <lastBuildDate>Mon, 06 Apr 2026 21:12:47 +0000</lastBuildDate>
    <item>
      <title>fortuity said on 31/May/2007</title>
      <link>https://ipv6.snipplr.com/view/2764/time-zones-by-country-using-rails-tzinfo</link>
      <description>&lt;p&gt;&lt;p&gt;The class TZInfo::Country requires the tzinfo gem and TZInfo plugin (http://tzinfo.rubyforge.org). Country and CountryTimeZone classes are my own (subclassed from my Geography class). This snippet gets the two-letter country code for each country and uses it to find all the time zones for the country and then creates a new  CountryTimeZone instance for each, specifying the country as a parent_id so we can do a tree list of countries and their "children" time zones. This snippet is run from the console and populates a data table.&lt;/p&gt;
&lt;/p&gt;</description>
      <pubDate>Thu, 31 May 2007 12:09:03 UTC</pubDate>
      <guid>https://ipv6.snipplr.com/view/2764/time-zones-by-country-using-rails-tzinfo</guid>
    </item>
  </channel>
</rss>
