Is it possible in cocoa touch to get the local timezone of device based on the coordinates from the gps? I saw this asked last year, but no answer…
All I really want is the number of hours difference from GMT, and I don’t want to query a web service.
Or, can I ask the device what timezone it is set to?
Can it be done?
Use
[NSTimeZone localTimeZone];Edit: The returned object has a
-(NSInteger)secondsFromGMTmethod you can use to figure out the difference from GMT.