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)secondsFromGMT
method you can use to figure out the difference from GMT.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With