NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
NSTimeZone *gmt = [NSTimeZone timeZoneWithAbbreviation:@"UTC"];
[dateFormat setTimeZone:gmt];
[dateFormat setDateFormat:@"h:mm a"];
return [dateFormat dateFromString:text];
ここで、テキストは午前9時16分で、iOS6では1970年以降の日付を返すために使用され、次のような日付を返します。
2000-01-01 09:16:00 +0000
これはバグですか?とにかく古い行動に切り替える