call stringForObjectValue from stringFromDate to fix failing test. add coverage for the serialization output of stringForObjectValue. refs #726

This commit is contained in:
Jamie Forrest
2012-07-11 13:55:39 -04:00
committed by Blake Watters
parent 86bc549869
commit 86c0233c58
2 changed files with 17 additions and 3 deletions

View File

@@ -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