Alarm clock does not work properly

I found similar code here: https://github.com/embeddedlab786/Real_Time_Clock_With_Alarm, but a I2C display was added to the sketch.