Hi, this is my first post here but after about a month of trying to get my in game events to work after a battery replacement in my copy of ruby I have finally figured out exactly what needs to be changed using pkhex.
My first attempt simply involved resetting the initial and elapsed time to zero in the rtc feature (photo 1) which did get berries growing again for me but all other time based events (berry master, lottery etc) were not resetting allowing me to do the daily events/receive the gifts
Photos two and three show the next step required to get all daily events working again. In the event flags you need to check the rtc reset feature then go to event constants and change both Reset rtc and days passed to custom. At this point enter whatever number of days your elapsed number of days is according to your rtc value in photo one (if reset to all zero these should also be zero)
This may be an old topic but I searched and searched and was only coming up with people who had ran into the same issue I was having with no real solution ever posted about getting all daily events working again. I hope this can help!