• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDateFormatter setDoesRelativeDateFormatting: broken?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSDateFormatter setDoesRelativeDateFormatting: broken? (From: Laurent Daudelin <email@hidden>)
 >Re: NSDateFormatter setDoesRelativeDateFormatting: broken? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Storing a block in a CF/NSMutableDictionary?
  • Next by Date: Re: Test for TCP port
  • Previous by thread: Re: NSDateFormatter setDoesRelativeDateFormatting: broken?
  • Next by thread: Storing a block in a CF/NSMutableDictionary?
  • Index(es):
    • Date
    • Thread