Hi and welcome to the forum.
First of all, use the code tags for posting the code, please. It is leftmost button in edit window.
Without reading you code, consider that the EEPROM has limited number of writes to ~100000x. Writing the data each second wears the EEPROM rapidly (the day has 86400s), so the EEPROM is absolutely not suitable.