hi I want to build a filter that gets records from database based on selected date.such as #### Product.find(:all, :conditions => ["created_at = ?",selected_date]) #### 1 If selected_date is a Date object while created_at is a DateTime object,is it work? 2 Do i need to set this? #### ActiveRecord::Base.default_timezone = :utc #### My talbe has another date type field which i want it to be local timezone,so it seems i should not set ActiveRecord::Base.default_timezone = :utc,but my filter will not works well because of the default local timezone setting for the createdz_at attribute.How to resolve these problem?
Thanks! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

