We prove an asymptotic formula for the second moment (up to height T) of the Riemann zeta function with two shifts. The case we deal with is where the real parts of the shifts are very close to zero and the imaginary parts can grow up to T2-ε, for any ε > 0.