Object must be a Date, DateTime or Time object. nil given.

An ActionView::Template::Error occurred in cards#index:

 Object must be a Date, DateTime or Time object. nil given.
 app/views/cards/_card_info.html.erb:56


-------------------------------
Request:
-------------------------------

 * URL        : https://bikelink.org/cards?search_terms=107
 * HTTP Method: GET
 * IP address : 98.35.154.160
 * Parameters : {"search_terms"=>"107", "controller"=>"cards", "action"=>"index"}
 * Timestamp  : 2021-05-24 17:06:47 UTC
 * Server : www-4.internal.bikelink.org
   * Rails root : /var/www/bikelink
 * Process: 5156

-------------------------------
Session:
-------------------------------

 * session id: [FILTERED]
 * data: {"session_id"=>"c8987f792bc45c12433194ed66c95f59",
  "warden.user.person.key"=>[[31069], "sTS8Ej46w_WwHcSCjmQv"],
  "_csrf_token"=>"RwsguNuaM7uwMkzrn4jWaqYs36TeHA+eMT//KEeNYA8=",
  "params_for_filter"=>
   {"filter_by_location"=>nil,
    "filter_by_owner"=>nil,
    "filter_by_state"=>2,
    "filter_by_priority"=>nil}}

-------------------------------
Backtrace:
-------------------------------

 app/views/cards/_card_info.html.erb:56
 app/views/cards/show.html.erb:6
 app/controllers/cards_controller.rb:524:in `block (2 levels) in list'
 app/controllers/cards_controller.rb:519:in `list'
 app/controllers/cards_controller.rb:444:in `index'
Reload