Skip to content

Commit

Permalink
Removing conditional in ISO 8601 formatter that causes valid dates to…
Browse files Browse the repository at this point in the history
… return nil
  • Loading branch information
mattt committed Nov 2, 2012
1 parent 5166177 commit 2b790c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions AFIncrementalStore/AFRESTClient.m
Expand Up @@ -76,9 +76,7 @@
.tm_isdst = -1,
};

if (strptime_l(newStr, "%FT%T%z", &tm, NULL) == NULL) {
return nil;
}
strptime_l(newStr, "%FT%T%z", &tm, NULL);

return [NSDate dateWithTimeIntervalSince1970:mktime(&tm)];
}
Expand Down

0 comments on commit 2b790c1

Please sign in to comment.