Re: NSTimestampFormatter question

2009-03-26 Thread Ken Anderson
Yes - clearly... just seemed strange! On Mar 26, 2009, at 5:34 PM, Dom wrote: Ken, I think the exception is misleading as to the format possibly. These lines: java.lang.IllegalArgumentException: Invalid pattern '-'MM'-'dd' 'HH':'mm':'ss at com.webobjects.foundation.NSTimestampForm

Re: NSTimestampFormatter question

2009-03-26 Thread Chuck Hill
On Mar 26, 2009, at 2:34 PM, Dom wrote: Ken, I think the exception is misleading as to the format possibly. These lines: java.lang.IllegalArgumentException: Invalid pattern '-'MM'-'dd' 'HH':'mm':'ss at com.webobjects.foundation.NSTimestampFormatter $__NSSimpleDateFormat._zoneSubp

Re: NSTimestampFormatter question

2009-03-26 Thread Dom
Ken, I think the exception is misleading as to the format possibly. These lines: java.lang.IllegalArgumentException: Invalid pattern '-'MM'-'dd' 'HH':'mm':'ss at com.webobjects.foundation.NSTimestampFormatter $__NSSimpleDateFormat._zoneSubpatternRange(NSTimestampFormatter.java: 920

Re: NSTimestampFormatter question

2009-03-26 Thread Chuck Hill
On Mar 26, 2009, at 1:05 PM, Dom wrote: I know that this is deprecated in WO5.4, but I have a source timestamp string that looks like this: 2009-03-26 15:56:50-0400 and I'm trying to create a formatter with the following pattern: %Y- %m-%d %H:%M:%S%z and I'm getting an Illegal arguement exc

Re: NSTimestampFormatter question

2009-03-26 Thread Ken Anderson
Dom, Are you absolutely sure you're using the percent format instead of the -MM-dd format? It looks like you switched from Simple to NSTimestamp formatters without changing the format string... Ken On Mar 26, 2009, at 4:05 PM, Dom wrote: I know that this is deprecated in WO5.4, but I

NSTimestampFormatter question

2009-03-26 Thread Dom
I know that this is deprecated in WO5.4, but I have a source timestamp string that looks like this: 2009-03-26 15:56:50-0400 and I'm trying to create a formatter with the following pattern: %Y-%m- %d %H:%M:%S%z and I'm getting an Illegal arguement exception: Invalid pattern '-'MM'-'dd' '