This is mostly likely because of your ruby's internal battery is dead. If there is the message saying, "the internal has run dry. The game can be played. However, clock-based events will no longer occur," appears before you start playing that means stuff like the growth of planted berries and the raffle in Lilycove City.
I've heard methods on charging or even changing your game, but most these tips are inconclusive