From 019bbf06292f72a7b021ee12ce11a5e4a6ceef60 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Sun, 25 Mar 2018 23:33:57 +0300 Subject: [PATCH] [7-Zip] Move conversion from UInt64 to Date from entry to file info --- Sources/7-Zip/7zEntryInfo.swift | 6 +++--- Sources/7-Zip/7zFileInfo.swift | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Sources/7-Zip/7zEntryInfo.swift b/Sources/7-Zip/7zEntryInfo.swift index 36574eb9..b89947f2 100644 --- a/Sources/7-Zip/7zEntryInfo.swift +++ b/Sources/7-Zip/7zEntryInfo.swift @@ -57,9 +57,9 @@ public struct SevenZipEntryInfo: ContainerEntryInfo { self.name = file.name - self.accessTime = Date(file.aTime) - self.creationTime = Date(file.cTime) - self.modificationTime = Date(file.mTime) + self.accessTime = file.aTime + self.creationTime = file.cTime + self.modificationTime = file.mTime self.winAttributes = file.winAttributes diff --git a/Sources/7-Zip/7zFileInfo.swift b/Sources/7-Zip/7zFileInfo.swift index b4f02976..b4c1d375 100644 --- a/Sources/7-Zip/7zFileInfo.swift +++ b/Sources/7-Zip/7zFileInfo.swift @@ -13,9 +13,9 @@ class SevenZipFileInfo { var isEmptyFile = false var isAntiFile = false var name: String = "" - var cTime: UInt64? - var mTime: UInt64? - var aTime: UInt64? + var cTime: Date? + var mTime: Date? + var aTime: Date? var winAttributes: UInt32? } @@ -78,7 +78,7 @@ class SevenZipFileInfo { else { throw SevenZipError.externalNotSupported } for i in 0..