iOS-获取的NSDate date时间与实际相差8个小时解决方案
本文转载至 http://blog.sina.com.cn/s/blog_51a995b70101iptl.html
NSDate *date = [NSDate date];
NSTimeZone *zone = [NSTimeZone systemTimeZone];
NSInteger interval = [zone secondsFromGMTForDate: date];
NSDate *localeDate = [date dateByAddingTimeInterval: interval];
NSLog(@"enddate=%@",localeDate);