Time-dependent Green's functions approach to nuclear reactions