Re: Date parsing problem (when running on iphone only)

2009-03-04 Thread Jacob Rhoden
On 5/3/09 2:42 AM, Christopher Kane wrote: It seems that if you have your Regional settings to Chinese the date is not parsed. What is the proper way to parse an "English" formatted date? Yes, the date formatter you're creating defaults to using the user's locale, which can have settings which

Re: Date parsing problem (when running on iphone only)

2009-03-04 Thread Christopher Kane
On Mar 4, 2009, at 4:22 AM, Jacob Rhoden wrote: On 4/3/09 10:15 PM, Jacob Rhoden wrote: Anyone experience this weird behaviour with date parsing? Given the following code, it produces a different log output when running in the simulator or on the iPhone!!! NSString* test = @"Monday 26 J

Re: Date parsing problem (when running on iphone only)

2009-03-04 Thread Michael Vannorsdel
You're trying to print an NSDate object returned by dateFromString: with a %i format which is for integers. So the number you're seeing is the memory address of the returned date converted to an int. On Mar 4, 2009, at 4:15 AM, Jacob Rhoden wrote: Anyone experience this weird behaviour wit

Re: Date parsing problem (when running on iphone only)

2009-03-04 Thread Jacob Rhoden
On 4/3/09 10:15 PM, Jacob Rhoden wrote: Anyone experience this weird behaviour with date parsing? Given the following code, it produces a different log output when running in the simulator or on the iPhone!!! NSString* test = @"Monday 26 January 2009 3:47:33 pm +"; NSDateFormatter

Date parsing problem (when running on iphone only)

2009-03-04 Thread Jacob Rhoden
Anyone experience this weird behaviour with date formatting? Given the following code, it produces a different log output when running in the simulator or on the iPhone!!! NSString* test = @"Monday 26 January 2009 3:47:33 pm +"; NSDateFormatter *df = [[NSDateFormatter alloc] init];