mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-27 00:01:00 +08:00
call stringForObjectValue from stringFromDate to fix failing test. add coverage for the serialization output of stringForObjectValue. refs #726
This commit is contained in:
committed by
Blake Watters
parent
86bc549869
commit
86c0233c58
@@ -64,9 +64,7 @@ NSTimeInterval millisecondsFromSeconds(NSTimeInterval seconds);
|
||||
RKLogError(@"Attempted to represent an invalid date: %@", date);
|
||||
return nil;
|
||||
}
|
||||
NSTimeInterval milliseconds = millisecondsFromSeconds([date timeIntervalSince1970]);
|
||||
NSString *timeZoneOffset = [super stringFromDate:date];
|
||||
return [NSString stringWithFormat:@"/Date(%1.0lf%@)/", milliseconds, timeZoneOffset];
|
||||
return [self stringForObjectValue:date];
|
||||
}
|
||||
|
||||
- (BOOL)getObjectValue:(id *)outValue forString:(NSString *)string errorDescription:(NSString **)error
|
||||
|
||||
Reference in New Issue
Block a user