fix regression from previous commit
This commit is contained in:
parent
b9ce3814d4
commit
5db5451166
@ -558,7 +558,7 @@ NSString *const SSZipArchiveErrorDomain = @"SSZipArchiveErrorDomain";
|
|||||||
NSLog(@"[SSZipArchive] Set attributes failed for directory: %@.", d[@"path"]);
|
NSLog(@"[SSZipArchive] Set attributes failed for directory: %@.", d[@"path"]);
|
||||||
}
|
}
|
||||||
if (err) {
|
if (err) {
|
||||||
NSLog(@"[SSZipArchive] Error setting directory file modification date attribute: %@",err.localizedDescription);
|
NSLog(@"[SSZipArchive] Error setting directory file modification date attribute: %@", err.localizedDescription);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,7 @@ uint32_t tm_to_dosdate(const struct tm *ptm)
|
|||||||
else /* range [00, 79] */
|
else /* range [00, 79] */
|
||||||
fixed_tm.tm_year += 20;
|
fixed_tm.tm_year += 20;
|
||||||
|
|
||||||
if (!invalid_date(ptm))
|
if (invalid_date(ptm))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return (uint32_t)(((fixed_tm.tm_mday) + (32 * (fixed_tm.tm_mon + 1)) + (512 * fixed_tm.tm_year)) << 16) |
|
return (uint32_t)(((fixed_tm.tm_mday) + (32 * (fixed_tm.tm_mon + 1)) + (512 * fixed_tm.tm_year)) << 16) |
|
||||||
|
Loading…
Reference in New Issue
Block a user