title: NSDate is not returning my local Time zone /default time zone of device
body: <p>My local and default time zone is GMT +5 but when I get date and time by NSDate  it return me GMT date and time.</p>
  
  <p>For example the code and output from my code  while testing on device is as, [device time zone Islamabad GMT +5]</p>
  
  <pre><code> NSTimeZone *lo = [NSTimeZone localTimeZone];
   NSLog(@" - current  local timezone  is  %@",lo); // GMT +5
  
  2010-12-28 20:56:11.785 Done[484:307]  - current  local timezone  is  Local Time Zone (Asia/Karachi (GMT+05:00) offset 18000)
  
   NSTimeZone *df = [NSTimeZone defaultTimeZone];
   NSLog(@" - current  default timezone  is  %@",df); // GMT +5
  
  2010-12-28 20:56:11.790 Done[484:307]  - current  default timezone  is  Asia/Karachi (GMT+05:00) offset 18000
  </code></pre>
  
  <p>but </p>
  
  <pre><code> NSDate *cDate = [NSDate date];
   NSLog(@"current date by NSDate %@",cDate); //but NSDate show GMT
  2010-12-28 20:56:11.794 Done[484:307] current date by NSDate 2010-12-28 15:56:11 GMT
  
  
   NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
   dateFormatter.dateFormat = @"yyyy-MM-dd'T'HH:mm";
   //// NSTimeZone *gmt = [NSTimeZone ]
   NSTimeZone *gmt = [NSTimeZone timeZoneWithAbbreviation:@"GMT+05:00"];
   [dateFormatter setTimeZone:gmt];
  
   NSString *timeStamp = [dateFormatter stringFromDate:[NSDate date]];
   NSLog(@" date string object  %@" ,timeStamp);   // string From Date is GMT +5
  2010-12-28 20:56:11.802 Done[484:307]  date string object  2010-12-28T20:56
  
  
   NSDate *datef = [dateFormatter dateFromString:timeStamp]; 
   NSLog(@" date object %@" ,datef);  // the date form above string gives again GMT
  2010-12-28 20:56:11.809 Done[484:307]  **date object 2010-12-28 15:56:00 GMT**
  </code></pre>
  
  <p>Why is NSDate not giving local current time? Please help...</p>