Set the time correctly