这是我的代码
NSString * dateStr = @"7/25/2013 12:00:00 AM";
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"MM/dd/yyyy hh:mm:ss a"];
NSDate *date = [dateFormat dateFromString:dateStr];
NSLog(@"dateStr : %@ , date : %@",dateStr,date);
但我的日期将比实际日期晚一天。查看此日志
dateStr : 7/25/2013 12:00:00 AM , date : 2013-07-24 18:30:00 +0000
我究竟做错了什么?