Re: PI-iOS 2.51.19 Log for Taleo's iPhone
Re: PI-iOS 2.51.19 Log for Taleo's iPhone
- Subject: Re: PI-iOS 2.51.19 Log for Taleo's iPhone
- From: Alex Kac <email@hidden>
- Date: Fri, 10 Aug 2012 09:40:00 -0500
Thanks. I've switched to just using a stringWithFormat: with CFGregorianDate. Just simpler overall :)
On Aug 10, 2012, at 9:28 AM, Philippe Marsteau <email@hidden> wrote:
> Seems like a iOS bug:
> http://stackoverflow.com/questions/143075/nsdateformatter-am-i-doing-something-wrong-or-is-this-a-bug
>
> Maybe you could be more permissive when filtering file names knowing
> that issue? iOS 6 might fix it but I haven't seen official defect
> though. Or you could use plain C function (works in objective C)
> instead of NSDateFormatter which should be fine for string
> manipulation in log files.
>
> Let me know if it helps.
> Philippe
>
>
> On 2012-08-09, at 20:15, Alex Kac <email@hidden> wrote:
>
>> Correct - the AM/PM text in there causes it to fail. The question is - why is it doing that? I see explicitly in our code we're setting the format we want the text to be made:
>>
>> //rename our sqlite file
>> //basically, we tack on a date & time to the current file name
>> NSString *fileExtension = [[self coreDataStorePath] pathExtension];
>> NSDateFormatter *fileArchiveDateFormat = [[NSDateFormatter alloc] init];
>> [fileArchiveDateFormat setDateFormat: @"yyyyMMdd_HHmmss"];
>> NSString *newPath = [[[[self coreDataStorePath] stringByDeletingPathExtension] stringByAppendingString: [fileArchiveDateFormat stringFromDate:[NSDate date]]] stringByAppendingPathExtension: fileExtension];
>> [fileArchiveDateFormat release];
>>
>>
>> So if we do that - why in the world is it overriding that and doing something else?
>>
>> On Aug 4, 2012, at 3:50 PM, Philippe Marsteau <email@hidden> wrote:
>>
>>> See other email containing backup file created from the app and listed
>>> in the log file.
>>>
>>> My problem from start to finish is: issue with backup restore function
>>> filtering out backup files created within the app.
>>>
>>> I wonder if the time format (not 24h format) introducing space in file
>>> name causes the issue to filter out all files.
>>> <000_log.txt><001_log.txt>
>>
>> Alex Kac - President and Founder
>> Web Information Solutions, Inc.
>>
>> "The person who is not hungry says that the coconut has a hard shell."
>> -- African Tribal Saying
>>
>>
>>
>>
>>
>>
Alex Kac - President and Founder
Web Information Solutions, Inc.
"Patience is the companion of wisdom."
--Anonymous
_______________________________________________
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