RTC DS1307 issue

Nick_Pyner:
The battery in the clock module should be good for ten years.

This sort of output 2165/165/165 165:165:85 could be indicative of inadequate power to the main board.

In this case, it's probably because the pins weren't connected correctly. Some battery is good for 10 years but I'm not sure about this particular one. If after removing the battery the clock runs without problem, then it's probably the battery.

I recommend the OP to simply use an RTC library so the code is guaranteed to work then the focus could be on code other than I2C communication and wiring of the circuit.