Ios swift – convert HH:mm string to gmt time string HH:mm
I'm using this code to convert HH:mm string to gmt time string HH:mm: func convertToGMT(timeString: String) -> String { let dateFormatter = DateFormatter() dateFormatter.dateFormat = "HH:mm" // Assuming the input time is in the user's local time zone dateFormatter.timeZone =…