I have created datePicker with locale and timezone as like
datePicker.locale = Locale(identifier: "en_US")
datePicker.timeZone = TimeZone(identifier: "Brazil/East")
datePicker.date = Date() // 2020-08-03 08:46:13 +0000
my device timezone is "Asia/Kolkata"
In datePicker wheels style its show time as "5:46 AM" but
Inline style shows "2:16 PM"
inline style always shows the time in current device timeZone irrespective of the configured datePicker.timeZone
datePicker.locale = Locale(identifier: "en_US")
datePicker.timeZone = TimeZone(identifier: "Brazil/East")
datePicker.date = Date() // 2020-08-03 08:46:13 +0000
my device timezone is "Asia/Kolkata"
In datePicker wheels style its show time as "5:46 AM" but
Inline style shows "2:16 PM"
inline style always shows the time in current device timeZone irrespective of the configured datePicker.timeZone