It might be the battery. There's no telling how long it sat on the shelf.
If this is a wireless unit, change the sensor battery and the main-unit battery.
Timekeeping has a very tiny draw from the battery, so it could probably keep going even if there's not enough juice left to operate the cyclometer.