UIDatePicker doesn't support two or more instances with different timezones on the same UIViewController

Originator:rafaelks
Number:rdar://48211231 Date Originated:02/19/2019
Status:Duplicated Resolved:--
Product:UIKit Product Version:iOS 12.1
Classification:Serious Bug Reproducible:Always
 
Area:
UIKit

Summary:
When creating an UIViewController instance with multiple UIDatePicker elements, you can't use different TimeZones on each element, because only one of them will be usable, the other one will be stuck and won't change times or dates.

Steps to Reproduce:
Simply create a new UIViewController, attach two or more UIDatePicker and attribute different timezones to them, example:

pickerView1.timeZone = TimeZone(identifier: "America/Sao_Paulo")
pickerView2.timeZone = TimeZone(identifier: "Europe/Rome")
pickerView3.timeZone = TimeZone(identifier: "Asia/Singapore")

Expected Results:
Each UIPickerView should behave normally, selecting their own dates and times based on the TimeZone selected.

Actual Results:
Picker 1 and Picker 2 are going to be stuck, no way to change date or time.

Version/Build:
Xcode 10.1 10B61.

Configuration:
iOS 12.1 in any device.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!