Window of Opportunity

When an alien scientist activates a device that the Ancients created for time alterations, Jack and Teal'c get caught in a time loop.