The time period of pendulum clock is given by
During summer, length of the pendulum increases due to which the time period T increases and pendulum takes more time to complete one oscillation. Thus it slow in summer.
During winter length decreases, decreasing the time period. Consequently pendulum gains time and dock becomes fast.