This commit is contained in:
giuseppenuc committed 2017-01-04 00:12:53 +01:00
1 parent 520b729123
commit 13801d0aa3
6 files changed
+24 -18

No files matched your search

+4 -6
View File
@@ -523,12 +523,10 @@ static NSDateFormatter *_displayFormatter = nil;
[dateFormatter setDateFormat:dateFormat];
NSDate *theDate = nil;
NSError *error = nil;
if (![dateFormatter getObjectValue:&theDate forString:dateString range:nil error:&error]) {
NSLog(@"Date '%@' could not be parsed: %@", dateString, error);
}
else {
NSDate *theDate = [NSDate dateFromString:dateString withFormat:dateFormat];
if (theDate) {
return dateFormat;
}
}