On 27 Sep 2011, at 21:39, Fritz Anderson wrote:

> On 27 Sep 2011, at 3:41 AM, Gerriet M. Denkmann wrote:
> 
>>      [ dateFormatter setGeneratesCalendarDates: YES ];
> ...
>>      NSLog(@" now \"%@\"", [dateFormatter stringFromDate: [NSDate date]]);
> 
> NSCalendarDate is really most sincerely deprecated, and you're feeding the 
> formatter an NSDate, not an NSCalendarDate. What happens if you set this to 
> NO (or don't set it at all)?

The line "... setGeneratesCalendarDates..." has no effect at all. It was just a 
frantic attempt to get it to work. Has long since been commented out.

> 
> In general, what happens if you temporarily remove the locale and time zone 
> settings?
The time zone settings have been already removed, because setting the locale 
also sets the time zone.

I have just commented out the line "[ dateFormatter setLocale: locale ]" as you 
suggested, but the result is still an empty string.

Kind regards,

Gerriet.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to