The film follows legendary Space Ranger (voiced by Chris Evans) after he accidentally crashes his ship, "The Turnip," on a hostile alien planet named T'Kani Prime .
After his final successful test flight, Buzz returns to find the colony 62 years later, now under attack by a mysterious robot army led by .
The story you're looking for belongs to the 2022 Pixar film Lightyear , which is presented as the actual movie Andy saw in 1995 that made him want a Buzz Lightyear toy.
Buzz finally accepts T'Kani Prime as his home and is authorized to revive the with his new teammates, continuing their adventures together.
: Every time Buzz conducts a four-minute test flight at lightspeed, time dilation occurs. While only minutes pass for him, years pass for everyone else on the planet.
: Realizing that changing the past would erase the lives and families created on T'Kani Prime, Buzz refuses to help his older self. He chooses to stay in the present and defeat Zurg. Conclusion
: Through several test flights, Buzz watches his best friend and commander, Alisha Hawthorne , live a full life—getting married, having children, and eventually passing away—while he remains the same age. The Conflict with Zurg
: Guilt-ridden for stranding 1,200 crew members, Buzz dedicates himself to testing new hyperspace fuel crystals to get everyone home.