DS1307 RTC adjust drift automatically

OK, in this thread now, thanks. :slight_smile:

I'd like to give this code a try. Can you give me more directions please?

Say I set my ds1307 to the correct time right now. How would I set the first three params of your sketch before uploading? Like this maybe?

Thanks!

const int setyearago=0; //when was the RTC set?
const int setmonth=8;
const int setday=22;