[ZIP] Native time and date are now relative to current timezone and calendar used by system

This commit is contained in:
Timofey Solomko
2018-01-28 19:58:40 +03:00
parent 32d3cc6279
commit d7390ec44f
+1 -2
View File
@@ -113,8 +113,7 @@ public struct ZipEntryInfo: ContainerEntryInfo {
let minutes = (dosTime & 0x7E0) >> 5
let hours = (dosTime & 0xF800) >> 11
self.modificationTime = DateComponents(calendar: Calendar(identifier: .iso8601),
timeZone: TimeZone(abbreviation: "UTC"),
self.modificationTime = DateComponents(calendar: Calendar.current, timeZone: TimeZone.current,
year: year, month: month, day: day,
hour: hours, minute: minutes, second: seconds).date
}