mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 20:31:13 +08:00
More model mapping improvements...
This commit is contained in:
@@ -221,7 +221,7 @@
|
||||
//NSLog(@"Asked JSON dictionary %@ for object with key %@. Got %@", dict, elementName, propertyValue);
|
||||
|
||||
// Types of objects SBJSON does not handle:
|
||||
if ([propertyType isEqualToString:@"NSDate"]) {
|
||||
if ([propertyType isEqualToString:@"NSDate"] && propertyValue != kCFNull) {
|
||||
NSDateFormatter* formatter = [[NSDateFormatter alloc] init];
|
||||
// Times coming back are in utc. we should convert them to the local timezone
|
||||
// TODO: Make sure this is working correctly
|
||||
|
||||
Reference in New Issue
Block a user