Stargate SG-1 copies from Groundhog Day, but not in a bad way.
"Window of Opportunity" makes creative use of the premise of Groundhog Day for its own purposes. As you can probably guess, much hilarity ensues.
The cleverest, hence funniest, is the technophobic, anti-intellectual Jack being forced to become knowledgeable about the esoteric minutiae of Daniel and Sam's scientific specialties -- ancient languages and astrophysics. It's the only way he and Teal'c can escape from the time loop. The series writers were at the top of their form here.
I even liked the Callaway Golf product placement tableau.