Only 2? In version 3.1, t [NSTimeZone knownTimeZoneNames] returns an array of 401 elements, and on Earth there are much less than 200 time zones.
I am sure that "other applications" use +knownTimeZoneNames , as this is the only public method returning such a list. Make sure your code is correct.
Settings.app uses the private CPCity API from the private AppSupport framework. He has San Francisco, but he is private.
You need to create your own database (data can be copied from /System/Library/PrivateFrameworks/AppSupport.framework/all_cities_adj.plist ).
source share