Reset the global time variable before testing the time.