[NSTimeZone resetSystemTimeZone]; // 重置手机系统的时区
NSInteger offset = [NSTimeZone localTimeZone].secondsFromGMT;//获取距离0时区偏差的时间
offset = offset/3600; +8 东八区, -8 西八区
NSString *tzStr = [NSString stringWithFormat:@"%ld", (long)offset];
[NSTimeZone resetSystemTimeZone]; // 重置手机系统的时区
NSInteger offset = [NSTimeZone localTimeZone].secondsFromGMT;//获取距离0时区偏差的时间
offset = offset/3600; +8 东八区, -8 西八区
NSString *tzStr = [NSString stringWithFormat:@"%ld", (long)offset];