mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
[ZIP] Native time and date are now relative to current timezone and calendar used by system
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user