drewcrawford/JucheLog — Issue #3: replace NSDate Private method with NSDateFormatter
Author: carlbrown
Created: 2012-01-13 13:24:54+00:00
State: open

-[NSDate descriptionWithCalendarFormat:timeZone:locale:] is a private method and grounds for rejection from the AppStore.
Error Follows.

```
/Users/carlb/src/JucheLog/JucheLog/NSLogBackend.m:21:71:{21:71-21:152}: error: no known instance method for selector 'descriptionWithCalendarFormat:timeZone:locale:' [4]
[string appendFormat:@"[%@] %@ %@ ",[state objectForKey:@"level"],[[NSDate date] descriptionWithCalendarFormat:@"%H:%M:%S" timeZone:nil locale:nil],[state objectForKey:@"msg"]];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```

Should replace with NSDateFormatter.

See also [warning no-method descriptionWithCalendarFormat:timeZone:locale found](http://stackoverflow.com/questions/1163589/warning-no-method-descriptionwithcalendarformattimezonelocale-found)