Arduino ds3231to TM1638 problems,alarm clock project
You set the variable data only in the setup function. 

You also do not print out data to Serial but the output of rtc.toString(buffer). 

If data is not updated in the loop method, the display constantly shows the time you initially set in the setup method.