time updates when the user chooses time