lib/can_search/date_range_scope.rb
# Parses the given time.  Strings are parsed with the current time zone, times are
# converted to the current time zone, and a nil value assumes you want Time.zone.now.
Parses the given time.  Strings are parsed with the current time zone, times are
converted to the current time zone, and a nil value assumes you want Time.zone.now.
Parses the given time . Strings are parsed with the current time zone times are converted to the current time zone and a nil value assumes you want Time . zone . now .
def parse_filtered_time(time = nil)
    case time
      when String then Time.zone.parse(time)
      when nil    then Time.zone.now
      when Time, ActiveSupport::TimeWithZone then time.in_time_zone
      else raise "Invalid time: #{time.inspect}"
    end
  end
def parse_filtered_time ( time = nil ) case time when String then Time . zone . parse ( time ) when nil then Time . zone . now when Time , ActiveSupport :: TimeWithZone then time . in_time_zone else raise "Invalid time: #{time.inspect}" end end
Parses the given time.
Parses the given time .
time
<not_specific>