That wasn't back in time, that was on a different planet. The episode in from the original series called "Patterns of Force", when the Enterprise goes to the planet Ekos to find a cultural observer called John Gill, who has broken the prime dircetive by introducing Nazi ideas to the people.
Okay, I like Star Trek
