How does my iPhone change time zones automatically?
It uses a combination of GPS and the date/time sent to the iPhone from the cell towers.  

There's several questions here about this same topic (different carriers and different iPhones) and they all have very similar responses to what I've said.  If you search for this topic, you can see all the different questions and answers; I just combined them all.