mountetna / magma

Data server with friendly data loaders
GNU General Public License v2.0
5 stars 2 forks source link

Cannot insert 'nil' into date_time attributes #202

Closed graft closed 3 years ago

graft commented 4 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

which fails because DateTime.parse does not accept nil.

coleshaw commented 3 years ago

This looks like it has been fixed.