Have you actually set the time once on this module?
Add this at the end of the setup() rtc.adjust(DateTime(__DATE__, __TIME__));, upload the code and let it run, then edit your code and comment out that line (only need to set up time once until the battery runs out)
Could be a number of things. The RTC may not be connected properly. It may not have the address that the library thinks it should have. It may never have been started. The battery could be dead.
It doesn't do much good to create a function to assign a time to the RTC is you never call it.
J-M-L:
Have you actually set the time once on this module?
Add this at the end of the setup() rtc.adjust(DateTime(__DATE__, __TIME__));, upload the code and let it run, then edit your code and comment out that line (only need to set up time once until the battery runs out)
What do you get?
I still get the same output: 2165/165/165 165:165:85
PaulS:
It doesn't do much good to create a function to assign a time to the RTC is you never call it.
I forgot that and now I called the verificaRTC() method, but still doesn't work.
Try removing the backup battery to see if that works. Apparently a high battery voltage or low Vcc voltage can cause problems. Something said the Vcc has to be at least 1.25 * Vbat.