<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,2 +1,5 @@
 module Admin::GiveawayRoundsHelper
+  def time_html_for_index(giveaway_round)
+    giveaway_round.pretty_time
+  end
 end</diff>
      <filename>app/helpers/admin/giveaway_rounds_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -16,6 +16,7 @@ class GiveawayRound &lt; ActiveRecord::Base
   end
   
   def pretty_time
-    time.strftime &quot;%a %b %d %I:%M %p&quot;
+    tz = ApplicationSetting.value 'time_zone'
+    tz.utc_to_local(time).strftime(&quot;%a %b %d %I:%M %p&quot;)
   end
 end</diff>
      <filename>app/models/giveaway_round.rb</filename>
    </modified>
    <modified>
      <diff>@@ -72,6 +72,28 @@ describe '/admin/giveaway_rounds/edit' do
   end
 end
 
+describe '/admin/giveaway_rounds' do
+  integrate_views
+  controller_name 'admin/giveaway_rounds'
+  
+  before :all do
+    ApplicationSetting.sample(
+      :name =&gt; 'time_zone', :value_class =&gt; 'TZInfo::Timezone',
+      :value =&gt; TZInfo::Timezone.get('America/New_York')
+    )
+  end
+  
+  before :each do
+    setup_configuration_and_login
+    GiveawayRound.sample :time =&gt; Time.utc(2009,9,30,19,45)
+    get :index
+  end
+  
+  it 'should display times in the local time zone' do
+    response.should have_tag('td', :text =&gt; /Wed Sep 30 03:45 PM/)
+  end
+end
+
 describe '/admin/giveaway_rounds/new' do
   integrate_views
   controller_name 'admin/giveaway_rounds'</diff>
      <filename>spec/controllers/admin/giveaway_rounds_controller_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>90bb9ac60bffae59dc3c3c06701ae56730d0b666</id>
    </parent>
  </parents>
  <author>
    <name>Francis Hwang</name>
    <email>francis@diversionmedia.com</email>
  </author>
  <url>http://github.com/fhwang/raflcon/commit/b0f37a2b9725f4a9ca462427bcb845217ee19c11</url>
  <id>b0f37a2b9725f4a9ca462427bcb845217ee19c11</id>
  <committed-date>2009-11-06T09:13:13-08:00</committed-date>
  <authored-date>2009-11-06T09:13:13-08:00</authored-date>
  <message>using chosen time zone in admin displays</message>
  <tree>e52aad46205f498261c485e3d4a9cb2eb28aacab</tree>
  <committer>
    <name>Francis Hwang</name>
    <email>francis@diversionmedia.com</email>
  </committer>
</commit>
