I need to get UTC date by specified NSDate. The problem is that utcDate doesn't calculates properly if date was in daylight saving period.
Here is a code I use:
NSDate *localDate = [updatesInfo objectForKey:@"date"];
NSTimeInterval timeZoneOffset = [[NSTimeZone defaultTimeZone] secondsFromGMT];
NSTimeInterval gmtTimeInterval = [localDate timeIntervalSinceReferenceDate] - timeZoneOffset;
NSDate *utcDate = [NSDate dateWithTimeIntervalSinceReferenceDate:gmtTimeInterval];
UPD:
I read localDate from /Library/Receipts/InstallHistory.plist It's an OSX file which contains all application's installation history. https://www.dropbox.com/s/3pc178avr4pj7uj/1.png?dl=0