I would like to recommend you using RTClib library. You can see a similar tutorial OLED Clock with DS1307