Re: NSDateFormatter setDoesRelativeDateFormatting: broken?
Re: NSDateFormatter setDoesRelativeDateFormatting: broken?
- Subject: Re: NSDateFormatter setDoesRelativeDateFormatting: broken?
- From: Laurent Daudelin <email@hidden>
- Date: Fri, 08 Apr 2011 18:15:56 -0700
On Apr 8, 2011, at 17:26, Rick Mann wrote:
> On Apr 8, 2011, at 16:44 , Laurent Daudelin wrote:
>
>> NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] initWithDateFormat:@"%Y-%m-%d %H:%M:%S" allowNaturalLanguage:YES];
>
> My guess would be the format you're initting it with is overriding the relative date setting. Try using "init" instead.
Yeah, that's what Gary Wade suggested privately and it's now working.
Thanks for the suggestion, Rick, much appreciated.
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
Logiciels Nemesys Software email@hidden
_______________________________________________
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