Re: Date Formatter relative date formatting
Re: Date Formatter relative date formatting
- Subject: Re: Date Formatter relative date formatting
- From: Steve Mills <email@hidden>
- Date: Fri, 28 Oct 2016 08:18:52 -0500
On Oct 28, 2016, at 03:05:06, Daniel Phillips <email@hidden> wrote:
>
> When using NSDateFormatter for relative date formatting, I am getting the localised word for today capitalised in some locales not not all. Is this expected behaviour? I’ve tried to research this and it seems the word today shouldn’t be capitalised (in English at least...) unless it’s used in a title, if true, then is this a bug in NSDateFormatter?
I seriously doubt that the team used capitalized letters willy nilly when entering these terms. I'm sure they researched how these terms are used when they appear as a standalone relative date, not used in a sentence. If it bugs you, just run it through lowercaseString before you put it into your "Free until" string, although that would also convert AM/PM to lower if it's included, depending on the user's prefs. Personally, it doesn't bother me that the word "Today" gets the same treatment when used that way as do the names of the days of the week. Think of it as the virtual placeholder name for the referenced day.
--
Steve Mills
Drummer, Mac geek
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden