title: named_scope for date.today Rails 2.3.9
body: <p>Working with a Rails 2.3.9 app and wondering how to write my named_scope such that I only get <code>workouts</code> from the current date. I am setting the timezone in in the application controller with a before_filter. The below doesn't throw an error, just doesn't filter:</p>
  
  <p>workout.rb</p>
  
  <pre><code>named_scope :today_only, :conditions =&gt; [ "workouts.created_at &lt;= ? AND workouts.created_at &gt;= ?", Time.zone.now, 1.days.ago ]
  </code></pre>
  
  <p>application_controller.rb</p>
  
  <pre><code>before_filter :set_user_time_zone
  </code></pre>