How to find out the current timezone offset on the device in HOURS ?
-(void)getDeviceUTCOffset{
NSDate *date = [NSDate date];
NSTimeZone* deviceTimeZone_ = [NSTimeZone systemTimeZone];
float offset = [deviceTimeZone_ secondsFromGMTForDate:date] / 3600.0;
}
To test code - test on a device
change device Timezone in
Settings > General > Date Time
Turn off SET AUTOMATICALLY
Then tap TimeZone and choose major cities east/west of you
Run code and check float offset
Compare value to cities on this site
e.g. heres Helsinki
Standard time zone: UTC/GMT +2 hours - as of Nov
http://www.timeanddate.com/worldclock/city.html?n=101
Check against countries with British Summer Time or their equivalent.