The Authenticator generates dynamic codes based on your phone's time. If your phone's time is inaccurate, the codes it generates will be invalid. In your phone's settings, set the date and time to "Set automatically" (automatic sync), then try again with the latest verification code.