From ed14fa0cab21c095b83095ff58c36890360dffa1 Mon Sep 17 00:00:00 2001 From: Nicky Weber Date: Wed, 25 Oct 2017 22:00:00 +0200 Subject: [PATCH] Fixing the date correction introduced in commit 2201e963dadfa6dc2af4e9c98617edb6a4df780e. When using the zipping facilities of ZipArchive it is using the Gregorian calendar to determine the date as of commit 3588d02649825f0c55be3d64fead9278fa79bfb6. --- ZipArchive.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZipArchive.m b/ZipArchive.m index 4f1a8ca..610b9ad 100644 --- a/ZipArchive.m +++ b/ZipArchive.m @@ -392,7 +392,7 @@ -(BOOL) UnzipFileTo:(NSString*) path overWrite:(BOOL) overwrite components.minute = fileInfo.tmu_date.tm_min; components.hour = fileInfo.tmu_date.tm_hour; components.day = fileInfo.tmu_date.tm_mday; - components.month = fileInfo.tmu_date.tm_mon + 1; + components.month = fileInfo.tmu_date.tm_mon; components.year = fileInfo.tmu_date.tm_year; NSCalendar *gregorianCalendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian];