Finite-time scaling in local bifurcations