Translate Time Zone Names to Time ID:s
问题 I found out that iOS framework doesn’t understand proper time zone names, like "Eastern Standard Time”. If you type: NSLog(@"EST: %@", [NSTimeZone timeZoneWithName:@"Eastern Standard Time"]); … you get: EST: (null) Instead, you have to use time ID:s (a narrower area), like "America/New_York" for example: NSLog(@"EST: %@", [NSTimeZone timeZoneWithName:@"America/New_York"]); ... then the console kindly responds: EST: America/New_York (GMT-4) offset -14400 (Daylight) Is there any way to