Making a variable with the time, and everytime the max temp is set during the day it updates also the time.