lib/eco/api/common/people/default_parsers/date_parser.rb in eco-helpers-1.3.12 vs lib/eco/api/common/people/default_parsers/date_parser.rb in eco-helpers-1.3.13
- old
+ new
@@ -17,10 +17,10 @@
private
def parse_date(value)
begin
- (value.to_s.empty?) ? nil : Time.parse(value)
+ (value.to_s.empty?) ? nil : Date.parse(value)
rescue
nil
end
end