update display of time