iOS 6 dateFromString returns wrong date
问题 I recently upgraded to iOS 6 and have noticed dateFromString is not working correctly, unless I'm doing something wrong with my dateFormat. It was working prior to the upgrade. Code: NSString *string = @"2012-09-24 - Sun"; NSLog(@"string = %@", string); NSDateFormatter *df = [[NSDateFormatter alloc] init]; NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en-US"]; [df setLocale:locale]; [df setDateFormat:@"yyyy-MM-dd - EEE"]; NSDate *date = [df dateFromString:string]; NSLog(@