Update time on window focus