The server I'm working with returns a date/time string that is always expressed in US central time. There is no timezone information in the string itself.
In order to parse this string, I need to create a DateFormatter and then assign its timeZone property.
I'm having trouble figuring out the right way to do this. I know that the correct string that means US central time is "America/Chicago", but it appears that the TimeZone initializer is looking for an abbreviation, rather than a full string.
I don't know what the correct abbreviation is. I don't want to use "CST" or "CDT" since those denote standard or daylight time. I need something that means whatever the current timzeone is in Chicago.
In Java, as an example, the Timezone class accepts "America/Chicago" as an initializer and it works whether or not the calendar is on daylight savings time.
Thanks, Frank