You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to add a date formatter to the list of RKValueTransformers that is utilized when serializing dates because RKObjectMapping's initialize function always overrides it.
Basically in my apps didFinishLaunhcing I have the following code:
// Update date format so that we can parse dates properly.
// 2013-11-09 14:51:27 +0000
NSDateFormatter *dateFormatter = [NSDateFormatter new];
dateFormatter.dateFormat = @"yyyy-MM-dd HH:mm:ss Z";
[[RKValueTransformer defaultValueTransformer] insertValueTransformer:dateFormatter atIndex:0];
I'm also having this issue.
In my case I'm trying to get it to parse "2013-12-31" into local time instead of UTC.
The deprecated "addDefaultDateFormatterForString" worked, and adding an NSDateTransformer works as soon as I add it, but later on in the code, more things have been added to override it.
I'm unable to add a date formatter to the list of RKValueTransformers that is utilized when serializing dates because RKObjectMapping's initialize function always overrides it.
Basically in my apps didFinishLaunhcing I have the following code:
Once I commented out the following line my NSDateFormatter was used.
https://github.com/RestKit/RestKit/blob/development/Code/ObjectMapping/RKObjectMapping.m#L140
Am I doing something incorrectly?
The text was updated successfully, but these errors were encountered: