Input String: June 14, 2012 – 01:00:00 UTC
Output Local String: Jun 13, 2012 – 21:00:00 EDT
I like to get the offset from
NSTimeZone* destinationTimeZone = [NSTimeZone systemTimeZone];
NSLog(@"Time Zone: %@", destinationTimeZone.abbreviation);
Any suggestion ?
This should do what you need:
Note that your example is incorrect: when it’s 1 AM on June-14th in UTC, it’s still June-13th in EST, 8 PM standard or 9 PM daylight savings time. On my system this program prints