BUG in IPHONE SDK 3.1 secondsFromGMT method of NSTimeZone Returning Wrong value Documentation says: secondsFromGMT Returns the current difference in seconds between the receiver and Greenwich Mean Time. This my Sample code
NSTimeZone *tZone =[NSTimeZone timeZoneWithName:@"Asia/Calcutta"];
NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
[calendar setTimeZone:tZone];
NSLog([NSString stringWithFormat:@" seconds from GMT:%d",[tZone secondsFromGMT]);
I am getting sseconds from GMT:625272 as output it should be 19800