<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -42,7 +42,7 @@ module CollectiveIdea
             :end_at =&gt; range.last.end_of_day.in_time_zone}]}
         }
 
-        named_scope :upcoming, lambda{ {:conditions =&gt; [&quot;#{quoted_table_name}.#{quoted_end_at_column_name} &gt; ?&quot;, Time.now]} }
+        named_scope :upcoming, lambda{ {:conditions =&gt; [&quot;#{quoted_table_name}.#{quoted_end_at_column_name} &gt; ?&quot;, Time.zone.now]} }
 
         # In a typical month calendar view, you'll have a couple days at the 
         # start and/or end of the month that are from the next/previous month.</diff>
      <filename>lib/active_record/event_finders.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@ module Calendar
       
       def initialize(options = {})
         @options = {
-          :date =&gt; Date.today,
+          :date =&gt; Time.zone.today,
           :begin_hour =&gt; 7,
           :end_hour =&gt; 18,
           :day_label_format =&gt; &quot;%A, %B %d, %Y&quot;,</diff>
      <filename>lib/calendar/builder/day.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,7 @@ module Calendar
   module Builder
     #
     # == Options
-    # * &lt;tt&gt;:date&lt;/tt&gt;: The date that the calendar should show.  Default is &lt;tt&gt;Date.today&lt;/tt&gt;.
+    # * &lt;tt&gt;:date&lt;/tt&gt;: The date that the calendar should show.  Default is &lt;tt&gt;Time.zone.today&lt;/tt&gt;.
     # * &lt;tt&gt;:first_day_of_week&lt;/tt&gt;: A symbol or integer (0 == &lt;tt&gt;:sunday&lt;/tt&gt;,
     #   6 == &lt;tt&gt;:saturday&lt;/tt&gt;) for day of week that the calendar should start on.
     #   Default is &lt;tt&gt;:sunday&lt;/tt&gt;
@@ -15,7 +15,7 @@ module Calendar
       
       def initialize(options = {})
         self.options = {
-          :date =&gt; Date.today,
+          :date =&gt; Time.zone.today,
           :first_day_of_week =&gt; :sunday,
           :day_label_format =&gt; &quot;%a, %b %d&quot;,
         }.merge(options)
@@ -129,7 +129,7 @@ module Calendar
           classes &lt;&lt; &quot;weekend&quot; if weekend?(date)
           classes &lt;&lt; &quot;first&quot; if beginning_of_week?(date)
           classes &lt;&lt; &quot;last&quot; if end_of_week?(date)
-          classes &lt;&lt; &quot;today&quot; if Date.today == date
+          classes &lt;&lt; &quot;today&quot; if Time.zone.today == date
         end
       end
 </diff>
      <filename>lib/calendar/builder/week.rb</filename>
    </modified>
    <modified>
      <diff>@@ -47,13 +47,13 @@ class EventFindersTest &lt; Test::Unit::TestCase
   
   def test_upcoming
     Event.upcoming(:all).each do |event|
-      assert e.begin_at &gt; Time.now
+      assert e.begin_at &gt; Time.zone.now
     end
   end
   
   # FIXME: DATE_FORMAT() doesn't work in SQLite
   # def test_find_by_month
-  #   Event.in_month(Date.today, :all)
+  #   Event.in_month(Time.zone.today, :all)
   # end
   
   def test_in_date_range</diff>
      <filename>test/active_record/event_finders_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -24,12 +24,12 @@ class EventFindersTest &lt; Test::Unit::TestCase
 
   def test_should_return_all_parties_in_date_range_when_not_scoped
     expected = @fun_parties.length + @boring_parties.length
-    actual = Party.in_date_range(Time.now..10.days.from_now).length
+    actual = Party.in_date_range(Time.zone.now..10.days.from_now).length
     assert_equal expected, actual
   end
 
   def test_should_return_only_fun_parties_in_date_range_when_scoped_to_community
-    actual = @fun_community.parties.in_date_range(Time.now..10.days.from_now)
+    actual = @fun_community.parties.in_date_range(Time.zone.now..10.days.from_now)
     assert_equal @fun_parties, actual
   end
   </diff>
      <filename>test/active_record/scoped_event_finders_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b9df1622fbf4952efc626888aec77847b6fe8dd8</id>
    </parent>
  </parents>
  <author>
    <name>Daniel Morrison</name>
    <email>daniel@collectiveidea.com</email>
  </author>
  <url>http://github.com/collectiveidea/calendar_builder/commit/99d64a9e9d57b6865358e2555369c0d7c9eabea5</url>
  <id>99d64a9e9d57b6865358e2555369c0d7c9eabea5</id>
  <committed-date>2009-09-30T08:30:40-07:00</committed-date>
  <authored-date>2009-09-30T08:29:59-07:00</authored-date>
  <message>More timezone updates</message>
  <tree>cd895eb72147eb445f780a64cee7e99150749543</tree>
  <committer>
    <name>Daniel Morrison</name>
    <email>daniel@collectiveidea.com</email>
  </committer>
</commit>
