Open gdunkle opened 8 years ago
We can't have such change on (NSDate *)MR_dateValueForKeyPath:(NSString *)keyPath fromObjectData:(id)objectData
: it must return an NSDate*
or nil
.
As for the importCreated
, I believe it needs to be fixed in (void)MR_setAttribute:(NSAttributeDescription *)attributeInfo withValueFromObject:(id)objectData
when the value is nil, by calling [objectData valueForKeyPath:keyPath];
and dealing with the raw data.
My dates come down to the device via json as epoch milliseconds like this
I assumed this would not be a problem since I could just add an import function like the following
The problem is the MR_dateValueForKeyPath method tries to convert the value and if it can't it just sets the value to nil.
I think the following change should be made to the MR_dateValueForKeyPath