the "4 " probably comes from the fact that temp1 is used in you display routine and its getting messed with by my code

make a new byte var temp12 for use in the 12/24 routine in place of temp1


but it should go to 19h not stay at 7h check if the am/pm is getting cleared when 24h mode is selected
I have to go to work for a while