More model mapping improvements...

This commit is contained in:
Blake Watters
2010-02-26 13:03:24 -05:00
parent db6c8d68c6
commit d93011dadf
5 changed files with 25 additions and 10 deletions

View File

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