When i create an object for NSDate
and put cursor on that object it was showing currect date like below
and when am trying to log that object it was showing date with minus 5:30hr like below
and when I add offset to date and put cursor on that object it was showing date with plus 5:30hr like below
NSInteger offset = [[NSTimeZone defaultTimeZone] secondsFromGMT];
and when am trying to log that object it was showing exact date like below
Why its happening like this? Is this problem with timezone? Thanks in advance.