I would like to display transactions with date/time like the Apple Photos App. When a transaction takes place in, for example, Frankfurt (CET), or at a location in any other timezone on July 20 at 11:00 am, I want it to also display July 20 at 11:00 am in Los Angeles (PST).
I need help with saving off the timezone and how to restore the timezone for display the date. I would prefer to use date formatting starting with iOS 15
Below is what I am currently using to read and display the date. Saving a transaction date on July 20 at 11:00 am (CET) will display July 20 at 02:00 am instead of 11:00 am (PST).
DatePicker("", selection: $entryDT, in: ...Date())
let hDate = item.catDate
Text(hDate.formatted(.dateTime.day().month(.wide).year().hour().minute()))