Commits

Peter Hosey  committed 27603ef

When not parsing strictly, allow a space before the time-zone specification, as expected by NSDate's +dateWithString: and -initWithString: methods and emitted by its -description method.

  • Participants
  • Parent commits f2fb30a

Comments (0)

Files changed (1)

File ISO8601DateFormatter.m

 					}
 				}
 
+				if (!strict) {
+					if (isspace(*ch)) ++ch;
+				}
+
 				switch(*ch) {
 					case 'Z':
 						timeZone = [NSTimeZone timeZoneWithAbbreviation:@"UTC"];