search for: start_datetime

Displaying 2 results from an estimated 2 matches for "start_datetime".

2011 Jun 06
0
datetime_select and in_time_zone?
...o adjust per the particular venue. The only issue is on the edit form. The date/time select is showing the data in UTC. When I''m working on the site, I mentally adjust, but for others it''s confusing. I''d like to do something along the lines of: <%= f.datetime_select :start_datetime.in_time_zone(@event.time_zone) %> Or, in the controller: def edit @performance = Performance.find(params[:id]) @event = @performance.event @performance.start_datetime = @performance.start_datetime.in_time_zone(@event.time_zone) end Then simply, <%= f.datetime_select :start_datetime %...
2007 Sep 11
2
How to search with range when I am using AAF
acts_as_ferret :fields => { :name => {:}, :desc => {}, :start_date => {} } def start_date self.start_datetime.strftime("%Y%m%d") end Now that I am strong start_date in YYYYMMDD format, I want to search for all event in between 20070506 and 20070809 What will my query look like when I am using aaf. This one doesn''t work Event.find_id_by_contents("start_date:[20070506 20070809]...