Distribution of the zeros of the Riemann zeta function in longer intervals