CLKRelativeDateTextProvider produces inconsistent results in a Complication Bundle

Originator:robotspacer
Number:rdar://29215541 Date Originated:11-Nov-2016 03:03 AM
Status:Open Resolved:
Product:watchOS SDK Product Version:watchOS 3.1.1 beta 2 (14S5869b) and iOS 10.2 (14C5069c)
Classification:Other Bug Reproducible:Always
 
Summary:
My complication shows a countdown to a specific day using CLKRelativeDateTextProvider. For my Complication Bundle I supply a date that is 3 days in the future. When the complication is viewed in the Watch app on iPhone, it shows some other number of days, like "44DAYS" or "51DAYS". When the same placeholder template displays on Apple Watch, the expected "3DAYS" count is shown.

This does a poor job of illustrating how my complication might be useful. Showing something a few days away is helpful, showing something a month a half away is far less so. I could supply static text for the Complication Bundle, but as far as I can tell there's no way to get it to display correctly. The system uses small caps for "DAYS", and I don't know of any way to do that with static text.

Steps to Reproduce:
1. Install the attached app on an Apple Watch with watchOS 3
2. Add the "Complicated" complication to a Modular face in the center (large) position
3. Open the Watch app on the iPhone and look in the "My Faces" section or "Face Gallery"

Expected Results:
The first line should say "3DAYS".

Actual Results:
The results are inconsistent but it has always been some other, usually much higher number for me, like "51DAYS".

Version:
watchOS 3.1.1 beta 2 (14S5869b) and iOS 10.2 (14C5069c)

Notes:
The attached screenshots IMG_0168.PNG and IMG_0169.PNG show the problem. Screenshots IMG_0170.PNG and IMG_0171.PNG demonstrate how the same code produces the correct results on the Apple Watch itself.

Configuration:
Apple Watch 42mm

Attachments:
'Complicated.zip' was successfully uploaded.

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!