Extraction of ActiveSupport::Duration from Rails
NoMethodError: undefined method 'to_date' for Time
Time#to_date
time