TimeZone Date Formatting Issue
问题 I'm trying to get a date from a string with multiple time zones, It works without any problems if the API returns zones with abbreviations like CST or UTC but it fails if it returns EET let timeString = "17:32 (EET)" let formatter = DateFormatter() formatter.dateFormat = "HH:mm (zzz)" let time = formatter.date(from: timeString) // return nil Any idea what is the issue might be?! 回答1: Probably because there is more than one timezone that matches the timezone abbreviation or the date formatter