I guess the time zone leads you to the butt.
For a specific example, you can do:
model.date.today?
To search for activerecord, try the following:
Deal.all(:conditions=>['date > ?',Time.zone.now.beginning_of_day])
Here's the problem:
>> Time.zone.now.beginning_of_day == Date.today.beginning_of_day
=> false
source
share