Raise ApiFieldError on invalid datetimes
Merge remote-tracking branch 'pelme/invalid_datetimes'