Virtuabotixrtch Arduino Library [portable]
Does not consume a large amount of Arduino memory.
// COMMENT THIS LINE AFTER FIRST USE // Only uncomment to set the time to when this sketch is compiled // myRTC.setTime(0, 15, 10, 4, 17, 10, 24); virtuabotixrtch arduino library
This is almost always because you have not removed or commented out the myRTC.setDS1302Time() function from your code. The DS1302 has its own backup battery. Your sketch should not set the time on every power-up. Use the setDS1302Time function once to set the correct time, then comment it out, re-upload the sketch, and the module will maintain the time from its backup battery. Does not consume a large amount of Arduino memory