Problem with DS1307 digital clock and 12 14-segment displays

Hi, I am creating a simple digital clock with a DS1307, I multiply the anodes, or the cathodes (connected in common) of 12 displays 14 segments, this method has allowed me to drastically reduce the ports of the arduino mega 2560 to use.
Now I have come to a problem:
as you can see from the screenshot of my simulator (Proteus) I can correctly display the information of the day of the week and the day of the month in the respective displays; instead as regards the hours, minutes and month, the data I display are only 10 for hours and minutes and AUG (August, referred to the value 10 of the month switch).
Reasoning, I can guess that my problem is related to the library related to RTC, how do you think it can solve this problem?
I am attaching the .ino file, the library (and the example file), and the screenshot of proteus.
I hope I have provided everything you need.
Thanks in advance.

Digital_clock.ino (4.45 KB)

Assegnazione_num___let.ino (10.4 KB)

DS1307.cpp (4.53 KB)

DS1307.h (2.02 KB)

SetTimeAndDisplay.ino (2.56 KB)