NSDateFormatter w/ relative date formatting shouldn't capitalize "Today"

Originator:nicolas.bouilleaud
Number:rdar://17326620 Date Originated:2014-07-22
Status:Closed Resolved:2015-06-25
Product:iOS SDK Product Version:8.0
Classification:UI/Usability Reproducible:Always
 
Summary:
NSDateFormatter, when using doesRelativeDateFormatting = YES (in en_US locale) capitalizes the first letter. This makes sense for week days that *should* be capitalized, but not for "today" or "tomorrow".

Steps to Reproduce:
This fragment of code:

```
        NSDateFormatter * df = [NSDateFormatter new];
        df.dateStyle = NSDateFormatterLongStyle;
        df.doesRelativeDateFormatting = YES;
        df.locale = [NSLocale localeWithLocaleIdentifier:@"en_US"];

        NSLog(@"day = %@",[df stringFromDate:[NSDate date]]);
```


Expected Results:
should print "day = today"

Actual Results:
but prints "day = Today".

Version:
8.0 (12A4265u)

Notes:


Configuration:
iPhone Simulator 8.0

Attachments:

Comments

Engineering has provided the following information regarding your bug report:

Please see the formattingContext property. It will control the capitalization.

By nicolas.bouilleaud at June 25, 2015, 9:05 a.m. (reply...)

This issue is still present in iOS 8.3b1 (12F5027d)

By nicolas.bouilleaud at Feb. 12, 2015, 1:36 p.m. (reply...)

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!