         url: nil,
         state: :running})
     |> Enum.each(&Repo.insert!/1)
-    now = DateTime.to_unix(DateTime.utc_now(), :seconds)
+    now = DateTime.to_unix(DateTime.utc_now(), :second)
     attempt
     |> Attempt.changeset(%{timeout_at: now + toml.timeout_sec})
     |> Repo.update!()


  defp poll_attempt(attempt, project) do
    patch = Repo.get!(Patch, attempt.patch_id)
    now = DateTime.to_unix(DateTime.utc_now(), :seconds)
    if attempt.timeout_at < now do
      timeout_attempt(attempt, project, patch)
    else

                committer: toml.committer
                })
            state = setup_statuses(attempt, toml)
            now = DateTime.to_unix(DateTime.utc_now(), :second)
            attempt
            |> Attempt.changeset(%{
              state: state, commit: commit, last_polled: now})
