boredzo / iso-8601-date-formatter

A Cocoa NSFormatter subclass to convert dates to and from ISO-8601-formatted strings. Supports calendar, week, and ordinal formats.
http://boredzo.org/iso8601dateformatter/
Other
600 stars 140 forks source link

-[ISO8601DateFormatter dateComponentsFromString:timeZone:range:fractionOfSecond:] (ISO8601DateFormatter.m:619) #61

Closed rcastillop closed 8 years ago

rcastillop commented 8 years ago

I've go this issue, with no extra details.

There's a way to fix it, or avoid it?

1 libobjc.A.dylib objc_msgSend + 2 2 CoreFoundation -[__NSDictionaryM objectForKey:] + 128 3 MyApp -ISO8601DateFormatter dateComponentsFromString:timeZone:range:fractionOfSecond: 4 MyApp -ISO8601DateFormatter dateFromString:timeZone:range: 5 MyApp -ISO8601DateFormatter dateFromString:timeZone:

rcastillop commented 8 years ago

I think the issues is because there is not thread protection when we read or write to timeZonesByOffset.

boredzo commented 8 years ago

Ah, yes. I think this was fixed by #39—NSCache is thread-safe, whereas NSMutableDictionary is not.