NSDateFormatter - getObjectValue:forString:range:error: returns incorrect date
<p>I am trying to convert from an NSString to NSDate using <code>getObjectValue:forString:range:error:</code>. The function returns success and no errors, but the returned date is incorrect.</p>

<p>Specifically, I am passing <code>@"1989-12-31T00:00:00+00:00"</code> to the function below and the returned date is <code>1970-01-01 00:00:000 +0000</code>.  Any thoughts?  </p>

<pre><code>+ (NSDate *) convertStringToDate:(NSString *) dateString
{
    NSDate* date = nil;
    NSError* error = nil;
    NSRange range = NSMakeRange(0, [dateString length]);

    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
    BOOL success = [dateFormatter getObjectValue:&amp;date forString:dateString range:&amp;range error:&amp;error];
    [dateFormatter release];

    return success ? date : nil;
}
</code></pre>

<p>Thanks in advance.</p>
