Set your iPhone / iPad time automatically even while travelling
You can do this by going to the settings->General->Time and opt for set time automatically as shown in the picture above.
How it works ?
Your location would be tracked by the iPhone and the time would be set according to the timezone of that particular location. iPhone has a built in GPS which takes care of this feature. This is how the map and other GPS applications work on iPhone.