lib/eco/api/common/people/default_parsers/date_parser.rb in eco-helpers-2.7.4 vs lib/eco/api/common/people/default_parsers/date_parser.rb in eco-helpers-2.7.12

- old
+ new

@@ -22,10 +22,10 @@ return wrong!(value, attr: attr) unless date?(value) date = Date.parse(value) return date if valid_range?(date) - wrong!(value, attr: attr, desc: 'Date out of range (1900-2099). Given: ') + wrong!(value, attr: attr, desc: 'Date out of range (1900-2099). Given:') rescue TypeError, Date::Error nil end def serialize_date(value)