Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow date fields to handle Ranges. Take 2.

  • Loading branch information...
commit f1941cd14535130256ea52c96704965e32bcda1d 1 parent 80f4088
Robert Jackson authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/hippo/field.rb
View
5 lib/hippo/field.rb
@@ -121,8 +121,9 @@ def parse_date(value)
end
case value.class.to_s
- when "Date" then value
- when "Time" then value.to_date
+ when "Range" then value
+ when "Date" then value
+ when "Time" then value.to_date
when "String"
format = case value
when /\A\d{6}\z/ then '%y%m%d'
Please sign in to comment.
Something went wrong with that request. Please try again.