UIDatePicker does not update when changing to a time that is 12 hours different

Originator:zacknoyes2
Number:rdar://42419686 Date Originated:7/20/2018
Status: Resolved:
Product:UIKit Product Version:iOS 11.4
Classification: Reproducible:Always
 
Area:
UIKit

Summary:

There is a bug where a UIDatePicker will not call the target for `.valueChanged` when the time changes to another one that is twelve hours apart through changing the hour slider.

An example of this bug is seen in the Calendar app, but it appear to be a bug in the actual framework.

This is described with a Gregorian calendar and US Locale.

Steps to Reproduce:

1. Launch the Calendar app.
2. Tap the '+' button.
3. Tap the table view cell with the static text 'starts'.
4. Scroll the hour component one full cycle. (e.g. if it is set to 6:00 am, scroll the '6' twelve rows down so that it still says '6', but the 'am' will have changed to 'pm')

Expected Results:

The '6:00 am' text should have updated to '6:00 pm' to represent the date selected by the date picker.

Actual Results:

The '6:00 am' text remains the same.

Version/Build:

iOS 11.4

Configuration:

(Calendar: Gregorian, Time Zone: Sydney, Locale: AU) - Shouldn't matte.

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!