<?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 for Phil's Blog</title>
	<atom:link href="http://blog.philross.co.uk/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.philross.co.uk</link>
	<description></description>
	<pubDate>Tue, 06 Jan 2009 02:21:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Timezone support in Ruby by Phil Ross</title>
		<link>http://blog.philross.co.uk/2005/08/30/timezone-support-in-ruby/comment-page-1/#comment-2566</link>
		<dc:creator>Phil Ross</dc:creator>
		<pubDate>Thu, 15 May 2008 22:35:13 +0000</pubDate>
		<guid isPermaLink="false">http://phil.ross.org.uk/?p=13#comment-2566</guid>
		<description>Madhu,

If you are using Rails 2.0 or earlier, you might want to take a look at the TzinfoTimezone plugin (http://agilewebdevelopment.com/plugins/tzinfo_timezone). This replaces the built in Rails TimeZone class with one that uses TZinfo. With this plugin installed, you'll still get Rails' standard list of timezones with the GMT offset when you use time_zone_options_for_select or time_zone_select. However, the TimeZone object has additional utc_to_local, local_to_utc and tzinfo methods to allow you to access the TZInfo functionality.

Edge Rails (2.1) now bundles a cut-down version of TZInfo and includes the functionality of TzinfoTimezone. See http://mad.ly/2008/04/09/rails-21-time-zone-support-an-overview/ for more information.

Regards,

Phil</description>
		<content:encoded><![CDATA[<p>Madhu,</p>
<p>If you are using Rails 2.0 or earlier, you might want to take a look at the TzinfoTimezone plugin (http://agilewebdevelopment.com/plugins/tzinfo_timezone). This replaces the built in Rails TimeZone class with one that uses TZinfo. With this plugin installed, you&#8217;ll still get Rails&#8217; standard list of timezones with the GMT offset when you use time_zone_options_for_select or time_zone_select. However, the TimeZone object has additional utc_to_local, local_to_utc and tzinfo methods to allow you to access the TZInfo functionality.</p>
<p>Edge Rails (2.1) now bundles a cut-down version of TZInfo and includes the functionality of TzinfoTimezone. See <a href="http://mad.ly/2008/04/09/rails-21-time-zone-support-an-overview/" rel="nofollow">http://mad.ly/2008/04/09/rails-21-time-zone-support-an-overview/</a> for more information.</p>
<p>Regards,</p>
<p>Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Timezone support in Ruby by Madhu Nallamani</title>
		<link>http://blog.philross.co.uk/2005/08/30/timezone-support-in-ruby/comment-page-1/#comment-2554</link>
		<dc:creator>Madhu Nallamani</dc:creator>
		<pubDate>Thu, 15 May 2008 16:47:19 +0000</pubDate>
		<guid isPermaLink="false">http://phil.ross.org.uk/?p=13#comment-2554</guid>
		<description>Hi Philip , 

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 =&#62; "America/Chicago" )%&#62;

I can display US zones in â€œ (GMT - 06:00 ) CentralTime (US &#38; 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 Philip , </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 - 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>Comment on Timezone support in Ruby by Phil Ross</title>
		<link>http://blog.philross.co.uk/2005/08/30/timezone-support-in-ruby/comment-page-1/#comment-270</link>
		<dc:creator>Phil Ross</dc:creator>
		<pubDate>Wed, 14 Jun 2006 19:37:44 +0000</pubDate>
		<guid isPermaLink="false">http://phil.ross.org.uk/?p=13#comment-270</guid>
		<description>TZInfo is the name of the module that contains all the timezone code.

Basic use of TZInfo involves code like:
&lt;pre&gt;tz = &lt;a href="http://tzinfo.rubyforge.org/doc/classes/TZInfo/Timezone.html"&gt;TZInfo::Timezone&lt;/a&gt;.get("America/New_York")
local_time = tz.utc_to_local(my_time_in_utc)
utc_time = tz.local_to_utc(my_local_time)&lt;/pre&gt;
Scott's &lt;a href="http://lunchroom.lunchboxsoftware.com/pages/tzinfo_rails"&gt;how-to&lt;/a&gt; describes how you can add an attribute to an existing User model that returns the timezone. This is done using the Rails composed_of method. In the example, the field time_zone in the users table contains the timezone identifier for the user (e.g. America/New_York). composed_of exposes a &lt;a href="http://tzinfo.rubyforge.org/doc/classes/TZInfo/Timezone.html"&gt;TZInfo::Timezone&lt;/a&gt; object as an attribute called tz.  You can then call utc_to_local, local_to_utc, etc on this timezone to convert the time.</description>
		<content:encoded><![CDATA[<p>TZInfo is the name of the module that contains all the timezone code.</p>
<p>Basic use of TZInfo involves code like:</p>
<pre>tz = <a href="http://tzinfo.rubyforge.org/doc/classes/TZInfo/Timezone.html">TZInfo::Timezone</a>.get("America/New_York")
local_time = tz.utc_to_local(my_time_in_utc)
utc_time = tz.local_to_utc(my_local_time)</pre>
<p>Scott&#8217;s <a href="http://lunchroom.lunchboxsoftware.com/pages/tzinfo_rails">how-to</a> describes how you can add an attribute to an existing User model that returns the timezone. This is done using the Rails composed_of method. In the example, the field time_zone in the users table contains the timezone identifier for the user (e.g. America/New_York). composed_of exposes a <a href="http://tzinfo.rubyforge.org/doc/classes/TZInfo/Timezone.html">TZInfo::Timezone</a> object as an attribute called tz.  You can then call utc_to_local, local_to_utc, etc on this timezone to convert the time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Timezone support in Ruby by stirman</title>
		<link>http://blog.philross.co.uk/2005/08/30/timezone-support-in-ruby/comment-page-1/#comment-267</link>
		<dc:creator>stirman</dc:creator>
		<pubDate>Wed, 14 Jun 2006 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://phil.ross.org.uk/?p=13#comment-267</guid>
		<description>I'm a little confused as to how to implement this, and the how-to by Scott seemed to skip over some of the initial set up.  After I require the gem, do I create a TZInfo model?

I desperately need to add this functionality to a little web app that is all done, minus timezone offset support!

Totally stoked that this TZ Library exists, thanks for your hard work!</description>
		<content:encoded><![CDATA[<p>I&#8217;m a little confused as to how to implement this, and the how-to by Scott seemed to skip over some of the initial set up.  After I require the gem, do I create a TZInfo model?</p>
<p>I desperately need to add this functionality to a little web app that is all done, minus timezone offset support!</p>
<p>Totally stoked that this TZ Library exists, thanks for your hard work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bugzilla - Making more attributes available in bug mail by Ivona</title>
		<link>http://blog.philross.co.uk/2005/08/17/bugzilla-making-more-attributes-available-in-bug-mail/comment-page-1/#comment-106</link>
		<dc:creator>Ivona</dc:creator>
		<pubDate>Mon, 24 Apr 2006 17:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://phil.ross.org.uk/?p=12#comment-106</guid>
		<description>thanks a  lot, this helps a great deal

Ivona</description>
		<content:encoded><![CDATA[<p>thanks a  lot, this helps a great deal</p>
<p>Ivona</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bugzilla - Making more attributes available in bug mail by Phil Ross</title>
		<link>http://blog.philross.co.uk/2005/08/17/bugzilla-making-more-attributes-available-in-bug-mail/comment-page-1/#comment-103</link>
		<dc:creator>Phil Ross</dc:creator>
		<pubDate>Sat, 22 Apr 2006 14:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://phil.ross.org.uk/?p=12#comment-103</guid>
		<description>Note that the attribute is rep_platform and not ref_platform.

It looks like the $substs attributes cannot contain underscores.  I've added

$substs{"opsys"} = $values{'op_sys'};
$substs{"repplatform"} = $values{'rep_platform'};

to BugMail.pm and

OS: %opsys%
Platform: %repplatform%

to the newchangedmail template and the values appear in the email.</description>
		<content:encoded><![CDATA[<p>Note that the attribute is rep_platform and not ref_platform.</p>
<p>It looks like the $substs attributes cannot contain underscores.  I&#8217;ve added</p>
<p>$substs{&#8221;opsys&#8221;} = $values{&#8217;op_sys&#8217;};<br />
$substs{&#8221;repplatform&#8221;} = $values{&#8217;rep_platform&#8217;};</p>
<p>to BugMail.pm and</p>
<p>OS: %opsys%<br />
Platform: %repplatform%</p>
<p>to the newchangedmail template and the values appear in the email.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bugzilla - Making more attributes available in bug mail by Ivona</title>
		<link>http://blog.philross.co.uk/2005/08/17/bugzilla-making-more-attributes-available-in-bug-mail/comment-page-1/#comment-101</link>
		<dc:creator>Ivona</dc:creator>
		<pubDate>Fri, 21 Apr 2006 20:50:32 +0000</pubDate>
		<guid isPermaLink="false">http://phil.ross.org.uk/?p=12#comment-101</guid>
		<description>Hi,
I tried to add op_sys and ref_platform attributes but it didn't work.
any suggestions?
thanks
Ivona</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I tried to add op_sys and ref_platform attributes but it didn&#8217;t work.<br />
any suggestions?<br />
thanks<br />
Ivona</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Symbolic links in Windows Vista by Paul Coddington</title>
		<link>http://blog.philross.co.uk/2005/08/06/symbolic-links-in-windows-vista/comment-page-1/#comment-44</link>
		<dc:creator>Paul Coddington</dc:creator>
		<pubDate>Sun, 05 Mar 2006 23:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://phil.ross.org.uk/?p=7#comment-44</guid>
		<description>Hopefully this will be an improvement over the exisiting hardlink feature which breaks as soon as any copy of the file is edited by an application that deletes before saving changes.</description>
		<content:encoded><![CDATA[<p>Hopefully this will be an improvement over the exisiting hardlink feature which breaks as soon as any copy of the file is edited by an application that deletes before saving changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hello, Dave by Steven</title>
		<link>http://blog.philross.co.uk/2005/07/25/hello-dave/comment-page-1/#comment-19</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Thu, 26 Jan 2006 00:44:34 +0000</pubDate>
		<guid isPermaLink="false">http://phil.ross.org.uk/?p=6#comment-19</guid>
		<description>I remember renting this on video as a kid when the 'cool kid' from primary school came over to stay (Mainly because my family had one of the early VCR's - a rare thing in those days)

*sigh*</description>
		<content:encoded><![CDATA[<p>I remember renting this on video as a kid when the &#8216;cool kid&#8217; from primary school came over to stay (Mainly because my family had one of the early VCR&#8217;s - a rare thing in those days)</p>
<p>*sigh*</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rubicon Christmas Party by Jake</title>
		<link>http://blog.philross.co.uk/2005/12/20/rubicon-christmas-party/comment-page-1/#comment-18</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Tue, 20 Dec 2005 20:29:52 +0000</pubDate>
		<guid isPermaLink="false">http://phil.ross.org.uk/?p=14#comment-18</guid>
		<description>104_0481 is the scariest thing I've seen all day.

No, really.</description>
		<content:encoded><![CDATA[<p>104_0481 is the scariest thing I&#8217;ve seen all day.</p>
<p>No, really.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
