标签:
NSDate *date = [NSDate date];
NSTimeZone *zone = [NSTimeZone systemTimeZone];
NSInteger interval = [zone secondsFromGMTForDate: date];
NSDate *localeDate = [date dateByAddingTimeInterval: interval];
NSLog(@"enddate=%@",localeDate);
iOS-获取的NSDate date时间与实际相差8个小时解决方案
标签:
原文地址:http://www.cnblogs.com/hero11223/p/5174809.html