?[NSTimeZone resetSystemTimeZone]; // 重置手機系統(tǒng)的時區(qū)
? ? NSInteger offset = [NSTimeZone localTimeZone].secondsFromGMT;//獲取距離0時區(qū)偏差的時間
? ? offset = offset/3600; ?+8 東八區(qū), -8 西八區(qū)
? ? NSString *tzStr = [NSString stringWithFormat:@"%ld", (long)offset];