Thx @eskimo, I'd really like to use localized templates and use it everywhere else, but unfortunately I could not use it in this case. In North America for example, this doesn't give me 24hr notion:
let date = Date(timeIntervalSince1970: 1645227803)
let formatter = DateFormatter()
formatter.setLocalizedDateFormatFromTemplate("jmm")
formatter.timeZone = .init(secondsFromGMT: 0)
formatter.locale = .init(identifier: "en_US")
formatter.string(from: date)
// 11:43 PM
But I'm more interested in getting this to work with the new Date.FormatStyle
. Is this possible or a way to create a custom one to achieve this?