Closed graft closed 3 years ago
Trying to /update a date_time attribute with the value nil results in a 500, because: https://github.com/mountetna/magma/blob/30d1b6b4509f9e782e1ae3ae4fb2251b5b7b0bbf/lib/magma/attributes/date_time_attribute.rb#L7-L9
date_time
which fails because DateTime.parse does not accept nil.
DateTime.parse
nil
This looks like it has been fixed.
Trying to /update a
date_time
attribute with the value nil results in a 500, because: https://github.com/mountetna/magma/blob/30d1b6b4509f9e782e1ae3ae4fb2251b5b7b0bbf/lib/magma/attributes/date_time_attribute.rb#L7-L9which fails because
DateTime.parse
does not acceptnil
.