RTC DS1307 issue

Read this, middle of page about TWI:

This leonardo has I2C bus on different pins than what you expect on UNO. You wired A4 and A5 to the RTC, as if you were using an UNO. Wire them to digital 2 and 3 or the dedicated I2C headers instead.