I have a date picker using the new inline style configured to use a specific timezone like so:
When run on a device in a vastly different timezone (e.g. Anchorage, USA), the accessibility labels for the dates in the date picker do not match what is displayed. For example the date displayed as Friday, January 15, 2021 (today in Auckland) has the accessibility label "Today, Thursday, January 14" (which would be correct in Anchorage).
Is there something I am missing?
Code Block language let aucklandDatePicker = UIDatePicker() aucklandDatePicker.datePickerMode = .date aucklandDatePicker.preferredDatePickerStyle = .inline aucklandDatePicker.timeZone = TimeZone(identifier: "Pacific/Auckland")!
When run on a device in a vastly different timezone (e.g. Anchorage, USA), the accessibility labels for the dates in the date picker do not match what is displayed. For example the date displayed as Friday, January 15, 2021 (today in Auckland) has the accessibility label "Today, Thursday, January 14" (which would be correct in Anchorage).
Is there something I am missing?