I am using following code to get current date:
-(NSDate*) timeStampDate {
NSDate* currentDate = [NSDate date];
return [NSDate dateWithTimeInterval:
[[NSTimeZone defaultTimeZone] secondsFromGMTForDate: currentDate]
sinceDate: currentDate];
}
When I display this date immediately upon saving, using a category that puts it into plain english, it gives me "5 hours ago". As I am in New York, this suggests to me the date is really the Greenwich date. Can anyone please explain to me what the above code is really doing.