File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,11 @@ - (void)updateWithResourceJSON:(NSDictionary*)json
144
144
*value = [NSNumber numberWithInt: [[json objectForKey: jsonKey] intValue ]];
145
145
146
146
} else if ([type isEqualToString: @" T@\" NSDate\" " ]) {
147
- *value = [[json objectForKey: jsonKey] dateValueWithFormat: API_TIMESTAMP_FORMAT];
147
+ NSString * timestamp = [json objectForKey: jsonKey];
148
+ if ([timestamp hasSuffix: @" Z" ])
149
+ timestamp = [[timestamp substringToIndex: [timestamp length ] - 1 ] stringByAppendingString: @" -0000" ];
150
+
151
+ *value = [timestamp dateValueWithFormat: API_TIMESTAMP_FORMAT];
148
152
149
153
} else if ([type isEqualToString: @" T@\" MModelCollection\" " ]) {
150
154
MModelCollection * collection = (MModelCollection *)*value;
You can’t perform that action at this time.
0 commit comments