title: NSDateFormetter losing an year
body: <p>I was using <code>NSDateFormatter</code> to convert a date <code>NSString</code> instance to a <code>NSDate</code> object. At a point, I realized that something isn't right, when I did a check, it seemed like <code>NSDateFormatter</code> was loosing a whole year when converting from a string to a <code>NSDate</code>.</p>
  
  <p>The code looks like this:</p>
  
  <pre><code>NSString *dateString = [dictionary objectForKey:@"match_date_time"];
  if (dateString) {
       // dateString is "2012-10-30 04:30:00"
  
       NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
       [formatter setTimeZone:[NSTimeZone timeZoneWithName:@"GMT"]];
       [formatter setDateFormat:@"YYYY-MM-dd HH:mm:ss"];
  
       self.date = [formatter dateFromString:dateString];
       // self.date ends up 2011-10-30 04:30:00 +0000, yes 2011 not 2012.
  }
  </code></pre>
  
  <p>Does anyone know why does <code>NSDateFormatter</code> fails so miserably?</p>
  
  <p>Thanks!</p>