   defp parse_date(date) do
     use Timex
 
-    format = find_dateformat(date)
-    IO.inspect format
+    format = case date do
+      nil -> :unknown
+      _ -> find_dateformat(date)
+    end
 
     pipe_matching(x, {:ok, x},
       case format do

          url: entry.link || entry.id,
          content: entry.summary,
          date: elem(parse_date(entry.updated), 1),
          guid: entry.id
        }

        case Repo.get_by(Item, guid: item.guid) do

    Enum.each(Repo.all(Feed), fn feed ->
      # Fetch data
      HTTPoison.start
      body = case HTTPoison.get(feed.url) do
        {:ok, %HTTPoison.Response{body: body}} -> body
        {:error, _} -> ""
      end

      # Parse it
      parsed_feed = try do
         elem(FeederEx.parse(body), 1)
      rescue
        _ -> %{entries: []}
      catch
        _ -> %{entries: []}
      end

      IO.inspect parsed_feed

      # Update feed items
      Enum.each(parsed_feed.entries, fn entry ->
