NSDateFormatter fails to parse '9995' milliseconds

Number:rdar://12761015 Date Originated:11/26/2012
Status:Duplicate/11357077 Resolved:
Product:iPhone SDK Product Version:6.0.1
Classification:Serious Bug Reproducible:Always
NSDateFormatter fails to parse iso8601 date strings when milliseconds is >9994

Steps to Reproduce:
	NSString *date1 = @"2012-06-15T19:39:30.999500";
	NSString *date2 = @"2012-11-25T19:43:33.231260";

	NSDateFormatter *dateFormater = [[NSDateFormatter alloc] init];
	[dateFormater setDateFormat: @"yyyy'-'MM'-'dd'T'HH':'mm':'ss.SSSS"];

	NSLog(@"%@", [dateFormater dateFromString: date1]);
	NSLog(@"%@", [dateFormater dateFromString: date2]);

Expected Results:

it should print:
2012-06-15 23:39:30 +0000
2012-11-26 00:43:33 +0000

Actual Results:

it prints:
2012-11-26 00:43:33 +0000


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!