Fixed used of deprecated constants (pull request #33)
This commit is contained in:
@@ -138,7 +138,7 @@
|
||||
|
||||
NSDate *now= [NSDate date];
|
||||
NSCalendar *calendar= [NSCalendar currentCalendar];
|
||||
NSDateComponents *date= [calendar components:(NSSecondCalendarUnit | NSMinuteCalendarUnit | NSHourCalendarUnit | NSDayCalendarUnit | NSMonthCalendarUnit | NSYearCalendarUnit) fromDate:now];
|
||||
NSDateComponents *date= [calendar components:(NSCalendarUnitSecond | NSCalendarUnitMinute | NSCalendarUnitHour | NSCalendarUnitDay | NSCalendarUnitMonth | NSCalendarUnitYear) fromDate:now];
|
||||
zip_fileinfo zi;
|
||||
zi.tmz_date.tm_sec= (uInt) [date second];
|
||||
zi.tmz_date.tm_min= (uInt) [date minute];
|
||||
@@ -177,7 +177,7 @@
|
||||
}
|
||||
|
||||
NSCalendar *calendar= [NSCalendar currentCalendar];
|
||||
NSDateComponents *date= [calendar components:(NSSecondCalendarUnit | NSMinuteCalendarUnit | NSHourCalendarUnit | NSDayCalendarUnit | NSMonthCalendarUnit | NSYearCalendarUnit) fromDate:fileDate];
|
||||
NSDateComponents *date= [calendar components:(NSCalendarUnitSecond | NSCalendarUnitMinute | NSCalendarUnitHour | NSCalendarUnitDay | NSCalendarUnitMonth | NSCalendarUnitYear) fromDate:fileDate];
|
||||
zip_fileinfo zi;
|
||||
zi.tmz_date.tm_sec= (uInt) [date second];
|
||||
zi.tmz_date.tm_min= (uInt) [date minute];
|
||||
@@ -216,7 +216,7 @@
|
||||
}
|
||||
|
||||
NSCalendar *calendar= [NSCalendar currentCalendar];
|
||||
NSDateComponents *date= [calendar components:(NSSecondCalendarUnit | NSMinuteCalendarUnit | NSHourCalendarUnit | NSDayCalendarUnit | NSMonthCalendarUnit | NSYearCalendarUnit) fromDate:fileDate];
|
||||
NSDateComponents *date= [calendar components:(NSCalendarUnitSecond | NSCalendarUnitMinute | NSCalendarUnitHour | NSCalendarUnitDay | NSCalendarUnitMonth | NSCalendarUnitYear) fromDate:fileDate];
|
||||
zip_fileinfo zi;
|
||||
zi.tmz_date.tm_sec= (uInt) [date second];
|
||||
zi.tmz_date.tm_min= (uInt) [date minute];
|
||||
|
||||
Reference in New Issue
Block a user