Why does NSDateFormatter misinterpretes his own created dateString?
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"YYYY-MM-DD'T'HH:mm:ss.SSSZZZZ"];
NSDate *now = [NSDate date];
NSLog(@"Now: %@, Date: %@", [dateFormatter dateFromString:[dateFormatter stringFromDate:now]], now);
produces the following result: Now: 1970-01-06 18:07:05 +0100, Date: 2010-01-06 18:07:05 +0100
I know that you should use yyyy and dd (and it does not happen with yyyy and dd), but that's not the point here. I am expecting to receive the same date when parsing the string the formatter has created for me.